summaryrefslogtreecommitdiff
path: root/bits/termios.h
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 /bits/termios.h
parent69d5f925ac8a84babe713099c32134f39735c960 (diff)
downloadglibc-15c64502abb55b7d0434bd9818c24ca937518d18.tar.gz
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 'bits/termios.h')
-rw-r--r--bits/termios.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/bits/termios.h b/bits/termios.h
index 4c970e0b3b..43bb1ce52d 100644
--- a/bits/termios.h
+++ b/bits/termios.h
@@ -1,5 +1,5 @@
/* termios type and macro definitions. 4.4 BSD/generic GNU version.
- Copyright (C) 1993,94,96,97,99 Free Software Foundation, Inc.
+ Copyright (C) 1993,94,96,97,99,2001 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
@@ -212,10 +212,25 @@ struct termios
#define B9600 9600 /* 9600 baud. */
#define B19200 19200 /* 19200 baud. */
#define B38400 38400 /* 38400 baud. */
-#ifdef __USE_BSD
+#ifdef __USE_MISC
# define EXTA 19200
# define EXTB 38400
#endif
+#define B57600 57600
+#define B115200 115200
+#define B230400 230400
+#define B460800 460800
+#define B500000 500000
+#define B576000 576000
+#define B921600 921600
+#define B1000000 1000000
+#define B1152000 1152000
+#define B1500000 1500000
+#define B2000000 2000000
+#define B2500000 2500000
+#define B3000000 3000000
+#define B3500000 3500000
+#define B4000000 4000000
};
#define _IOT_termios /* Hurd ioctl type field. */ \