Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/libbb/speed_table.c

    r1765 r2725  
    55 * Copyright (C) 2003  Manuel Novoa III  <mjn3@codepoet.org>
    66 *
    7  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    88 */
    99
    10 #include <termios.h>
    1110#include "libbb.h"
    1211
     
    3130    {B4800, 4800},
    3231    {B9600, 9600},
    33 #ifdef  B19200
     32#ifdef B19200
    3433    {B19200, 19200},
    3534#elif defined(EXTA)
    3635    {EXTA, 19200},
    3736#endif
    38 #ifdef  B38400
     37#ifdef B38400
    3938    {B38400, 38400/256 + 0x8000U},
    4039#elif defined(EXTB)
     
    5352    {B460800, 460800/256 + 0x8000U},
    5453#endif
     54#ifdef B921600
     55    {B921600, 921600/256 + 0x8000U},
     56#endif
    5557};
    5658
    5759enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
    5860
    59 unsigned int tty_baud_to_value(speed_t speed)
     61unsigned FAST_FUNC tty_baud_to_value(speed_t speed)
    6062{
    6163    int i = 0;
     
    7375}
    7476
    75 speed_t tty_value_to_baud(unsigned int value)
     77speed_t FAST_FUNC tty_value_to_baud(unsigned int value)
    7678{
    7779    int i = 0;
     
    9597    speed_t s;
    9698
    97     for (v = 0 ; v < 500000; v++) {
     99    for (v = 0 ; v < 1000000; v++) {
    98100        s = tty_value_to_baud(v);
    99101        if (s == (speed_t) -1) {
Note: See TracChangeset for help on using the changeset viewer.