From 85ba109de7c313449a8d4cd8bcc7b0606d0f15ec Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 9 Jan 2003 08:22:05 +0000 Subject: Use isdirsep rather than SLASH_P throughout. * path.cc (iscygdrive): Disallow /cygdrive\x. (normalize_posix_path): "Normalize" a windows path, if detected, rather than converting to posix. * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and capability checking for B230400 bitrate. (fhandler_serial::tcgetattr): Add support for B230400 bitrate. * include/sys/termios.h: Add B230400 definition for Posix support of 230.4Kbps. --- winsup/cygwin/fhandler_serial.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_serial.cc') diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index 7081db3d5..2f41eb9c7 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -591,6 +591,9 @@ fhandler_serial::tcsetattr (int action, const struct termios *t) case B115200: state.BaudRate = CBR_115200; break; + case B230400: + state.BaudRate = 230400 /* CBR_230400 - not defined */; + break; default: /* Unsupported baud rate! */ termios_printf ("Invalid t->c_ospeed %d", t->c_ospeed); @@ -722,7 +725,6 @@ fhandler_serial::tcsetattr (int action, const struct termios *t) state.fAbortOnError = TRUE; - /* -------------- Set state and exit ------------------ */ if (memcmp (&ostate, &state, sizeof (state)) != 0) SetCommState (get_handle (), &state); @@ -891,6 +893,9 @@ fhandler_serial::tcgetattr (struct termios *t) case CBR_115200: t->c_cflag = t->c_ospeed = t->c_ispeed = B115200; break; + case 230400: /* CBR_230400 - not defined */ + t->c_cflag = t->c_ospeed = t->c_ispeed = B230400; + break; default: /* Unsupported baud rate! */ termios_printf ("Invalid baud rate %d", state.BaudRate); -- cgit v1.2.3