about summary refs log tree commit diff
path: root/sysdeps/generic/tcsetattr.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-07-26 21:23:31 +0000
committerRoland McGrath <roland@gnu.org>2001-07-26 21:23:31 +0000
commit15c64502abb55b7d0434bd9818c24ca937518d18 (patch)
treecb7f6e372f3c8ef71feaf4aa821c0ecf0430972b /sysdeps/generic/tcsetattr.c
parent69d5f925ac8a84babe713099c32134f39735c960 (diff)
downloadglibc-15c64502abb55b7d0434bd9818c24ca937518d18.tar.gz
glibc-15c64502abb55b7d0434bd9818c24ca937518d18.tar.xz
glibc-15c64502abb55b7d0434bd9818c24ca937518d18.zip
2001-07-26 Roland McGrath <roland@frob.com>
	* sysdeps/generic/bits/termios.h (EXTA, EXTB): Make these conditional
	on __USE_MISC rather than __USE_BSD.
	(B57600, B115200, B230400, B460800, B500000, B576000, B921600,
	B1000000, B1152000, B1500000, B2000000, B2500000, B3000000,
	B3500000, B4000000): New macros.
	* sysdeps/generic/tcsetattr.c (bad_speed): Accept those values.
	* termios/cfsetspeed.c (speeds): Likewise.
Diffstat (limited to 'sysdeps/generic/tcsetattr.c')
-rw-r--r--sysdeps/generic/tcsetattr.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sysdeps/generic/tcsetattr.c b/sysdeps/generic/tcsetattr.c
index 205995d94c..fc16d84aca 100644
--- a/sysdeps/generic/tcsetattr.c
+++ b/sysdeps/generic/tcsetattr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,95,96,2000,01 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -82,6 +82,21 @@ bad_speed (speed_t speed)
     case B9600:
     case B19200:
     case B38400:
+    case B57600:
+    case B115200:
+    case B230400:
+    case B460800:
+    case B500000:
+    case B576000:
+    case B921600:
+    case B1000000:
+    case B1152000:
+    case B1500000:
+    case B2000000:
+    case B2500000:
+    case B3000000:
+    case B3500000:
+    case B4000000:
       return 0;
     default:
       return 1;