[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Bug#170020: stty doesn't support all baud rates]
From: |
Jim Meyering |
Subject: |
Re: address@hidden: Bug#170020: stty doesn't support all baud rates] |
Date: |
Thu Nov 21 07:24:03 2002 |
Thank you!
I've applied that patch.
Michael Stone <address@hidden> wrote:
> ----- Forwarded message from Martin Buck <address@hidden> -----
>
> Subject: Bug#170020: stty doesn't support all baud rates
> X-Debian-PR-Message: report 170020
> X-Debian-PR-Package: shellutils
> X-Debian-PR-Keywords: patch
> From: Martin Buck <address@hidden>
> Organization: Ascom Systec AG
> To: address@hidden
> X-Filter-Version: 1.6 (ascomax)
>
> Package: shellutils
> Version: 2.0.11-11
> Tags: patch
>
> stty doesn't support all baud rates available in current Linux kernels.
> When trying to set a high baud rate using stty, it says "invalid
> argument". When the high rate is already configured, "stty -a" returns 0
> instead of the true baud rate.
>
> The patch below adds support for all baud rates defined in the 2.4.19
> kernel.
>
> *** shellutils-2.0.11/src/stty.c.orig Thu Nov 21 10:06:50 2002
> --- shellutils-2.0.11/src/stty.c Thu Nov 21 09:53:55 2002
> ***************
> *** 1754,1759 ****
> --- 1754,1792 ----
> #ifdef B460800
> {"460800", B460800, 460800},
> #endif
> + #ifdef B500000
> + {"500000", B500000, 500000},
> + #endif
> + #ifdef B576000
> + {"576000", B576000, 576000},
> + #endif
> + #ifdef B921600
> + {"921600", B921600, 921600},
> + #endif
> + #ifdef B1000000
> + {"1000000", B1000000, 1000000},
> + #endif
> + #ifdef B1152000
> + {"1152000", B1152000, 1152000},
> + #endif
> + #ifdef B1500000
> + {"1500000", B1500000, 1500000},
> + #endif
> + #ifdef B2000000
> + {"2000000", B2000000, 2000000},
> + #endif
> + #ifdef B2500000
> + {"2500000", B2500000, 2500000},
> + #endif
> + #ifdef B3000000
> + {"3000000", B3000000, 3000000},
> + #endif
> + #ifdef B3500000
> + {"3500000", B3500000, 3500000},
> + #endif
> + #ifdef B4000000
> + {"4000000", B4000000, 4000000},
> + #endif
> {NULL, 0, 0}
> };
>
> ----- End forwarded message -----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: address@hidden: Bug#170020: stty doesn't support all baud rates],
Jim Meyering <=