This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
tcgetattr() doesn't support 50 baud
- From: Lapo Luchini <lapo at lapo dot it>
- To: cygwin-apps at cygwin dot com
- Cc: Troy Curtiss <trcurtiss at gmail dot com>
- Date: Fri, 23 Jun 2006 11:42:30 +0200
- Subject: tcgetattr() doesn't support 50 baud
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_serial.cc?rev=1.66&content-type=text/x-cvsweb-markup&cvsroot=src
http://ecos.sourceware.org/ml/cygwin-patches/2005-q3/msg00071.html
It seems that support for 50 baud rate was forgotten, so... tcgetattr
returns "EINVAL" if the serial is set that way.
Setting it to 50 baud using tcsetattr works correctly though.
For the one of you wondering why on earth should anyone use 50 baud, the
answer is: DCF77 serial receivers ;-)
I'll try and add the support for B50 in in and send a patch ASAP.
--
Lapo Luchini
lapo@lapo.it (OpenPGP & X.509)
www.lapo.it (Jabber, ICQ, MSN)