]> sourceware.org Git - glibc.git/commitdiff
2001-07-26 Roland McGrath <roland@frob.com>
authorRoland McGrath <roland@gnu.org>
Thu, 26 Jul 2001 21:23:31 +0000 (21:23 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 26 Jul 2001 21:23:31 +0000 (21:23 +0000)
* sysdeps/generic/bits/termios.h (EXTA, EXTB): Make these conditional
on __USE_MISC rather than __USE_BSD.
(B57600, B115200B230400B460800B500000B576000B921600,
B1000000B1152000B1500000B2000000B2500000B3000000,
B3500000B4000000): New macros.
* sysdeps/generic/tcsetattr.c (bad_speed): Accept those values.
* termios/cfsetspeed.c (speeds): Likewise.

bits/termios.h
sysdeps/generic/bits/termios.h
sysdeps/generic/tcsetattr.c
termios/cfsetspeed.c

index 4c970e0b3bae633ef7b9e83a65a1a3949d7d9ad3..43bb1ce52d58ca62257a53ee73c9161ff3a8e9b2 100644 (file)
@@ -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.  */ \
index 4c970e0b3bae633ef7b9e83a65a1a3949d7d9ad3..43bb1ce52d58ca62257a53ee73c9161ff3a8e9b2 100644 (file)
@@ -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.  */ \
index 205995d94c817ae59af1e0ae9661c83bddee8c8f..fc16d84aca669467c9cbe37a3060039002316941 100644 (file)
@@ -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;
index 98e52cc7be1a56e9eba994adcbc912544648799a..436c54bc56bf7340e2b4425379b8b55aa9dc8764 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1992,93,96,97,98,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
@@ -99,6 +99,39 @@ static const struct speed_struct speeds[] =
 #endif
 #ifdef B460800
     { 460800, B460800 },
+#endif
+#ifdef B500000
+    { 500000, B500000 },
+#endif
+#ifdef B576000
+    { 576000, B576000 },
+#endif
+#ifdef B921600
+    { 921600, B921600 },
+#endif
+#ifdef B1000000
+    { 1000000, B1000000 },
+#endif
+#ifdef B1152000
+    { 1152000, B1152000 },
+#endif
+#ifdef B1500000
+    { 1500000, B1500000 },
+#endif
+#ifdef B2000000
+    { 2000000, B2000000 },
+#endif
+#ifdef B2500000
+    { 2500000, B2500000 },
+#endif
+#ifdef B3000000
+    { 3000000, B3000000 },
+#endif
+#ifdef B3500000
+    { 3500000, B3500000 },
+#endif
+#ifdef B4000000
+    { 4000000, B4000000 },
 #endif
   };
 
This page took 0.054014 seconds and 5 git commands to generate.