This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [PATCH] tcgetattr() doesn't support 50 baud
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 23 Jun 2006 14:04:56 +0200
- Subject: Re: [PATCH] tcgetattr() doesn't support 50 baud
- References: <449BB786.4080209@lapo.it> <449BCFD1.4070007@gmail.com>
- Reply-to: cygwin-apps at cygwin dot com
On Jun 23 13:26, Lapo Luchini wrote:
> Lapo Luchini wrote:
> > I'll try and add the support for B50 in in and send a patch ASAP.
> >
> Modified, patched, and tested:
>
> --- fhandler_serial.cc.orig 2006-01-16 18:14:36.000000000 +0100
> +++ fhandler_serial.cc 2006-06-23 11:49:26.000000000 +0200
> @@ -608,6 +608,9 @@
> 0 is an invalid bitrate in Win32 */
> dropDTR = true;
> break;
> + case B50:
> + state.BaudRate = 50;
> + break;
> case B110:
> state.BaudRate = CBR_110;
> break;
> @@ -915,6 +918,9 @@
> /* -------------- Baud rate ------------------ */
> switch (state.BaudRate)
> {
> + case 50:
> + t->c_ospeed = t->c_ispeed = B50;
> + break;
> case CBR_110:
> t->c_ospeed = t->c_ispeed = B110;
> break;
Thanks for the patch, but
- this is the wrong list, use cygwin-patches, please.
- A ChangeLog entry is missing.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat