]>
Commit | Line | Data |
---|---|---|
440c7f26 AM |
1 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/alpha/bits/termios.h glibc-2.2.3/sysdeps/unix/sysv/linux/alpha/bits/termios.h |
2 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/alpha/bits/termios.h Thu Jun 28 14:44:51 2001 | |
3 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/alpha/bits/termios.h Thu Jun 28 14:45:07 2001 | |
f8b9a334 AM |
4 | @@ -150,6 +150,8 @@ |
5 | #define B3500000 00035 | |
6 | #define B4000000 00036 | |
7 | ||
8 | +#define __MAX_BAUD B4000000 | |
9 | + | |
10 | #define CSIZE 00001400 | |
11 | #define CS5 00000000 | |
12 | #define CS6 00000400 | |
440c7f26 AM |
13 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/bits/termios.h glibc-2.2.3/sysdeps/unix/sysv/linux/bits/termios.h |
14 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/bits/termios.h Thu Jun 28 14:44:52 2001 | |
15 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/bits/termios.h Thu Jun 28 14:45:07 2001 | |
f8b9a334 AM |
16 | @@ -165,6 +165,7 @@ |
17 | #define B3000000 0010015 | |
18 | #define B3500000 0010016 | |
19 | #define B4000000 0010017 | |
20 | +#define __MAX_BAUD B4000000 | |
21 | #ifdef __USE_MISC | |
22 | # define CIBAUD 002003600000 /* input baud rate (not used) */ | |
23 | # define CRTSCTS 020000000000 /* flow control */ | |
440c7f26 AM |
24 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/mips/bits/termios.h glibc-2.2.3/sysdeps/unix/sysv/linux/mips/bits/termios.h |
25 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/mips/bits/termios.h Thu Jun 28 14:44:55 2001 | |
26 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/mips/bits/termios.h Thu Jun 28 14:45:07 2001 | |
f8b9a334 AM |
27 | @@ -214,6 +214,7 @@ |
28 | # define B3000000 0010015 | |
29 | # define B3500000 0010016 | |
30 | # define B4000000 0010017 | |
31 | +# define __MAX_BAUD B4000000 | |
32 | # define CIBAUD 002003600000 /* input baud rate (not used) */ | |
33 | # define CRTSCTS 020000000000 /* flow control */ | |
34 | #endif | |
440c7f26 AM |
35 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/powerpc/bits/termios.h glibc-2.2.3/sysdeps/unix/sysv/linux/powerpc/bits/termios.h |
36 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/powerpc/bits/termios.h Thu Jun 28 14:44:55 2001 | |
37 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/powerpc/bits/termios.h Thu Jun 28 14:45:07 2001 | |
38 | @@ -154,6 +154,7 @@ | |
f8b9a334 AM |
39 | #define B3000000 00034 |
40 | #define B3500000 00035 | |
41 | #define B4000000 00036 | |
42 | +#define __MAX_BAUD B4000000 | |
43 | ||
44 | #define CSIZE 00001400 | |
45 | #define CS5 00000000 | |
440c7f26 AM |
46 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/sparc/bits/termios.h glibc-2.2.3/sysdeps/unix/sysv/linux/sparc/bits/termios.h |
47 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/sparc/bits/termios.h Thu Jun 28 14:44:57 2001 | |
48 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/sparc/bits/termios.h Thu Jun 28 14:45:07 2001 | |
f8b9a334 AM |
49 | @@ -156,6 +156,7 @@ |
50 | #define B1152000 0x0000100d | |
51 | #define B1500000 0x0000100e | |
52 | #define B2000000 0x0000100f | |
53 | +#define __MAX_BAUD B2000000 | |
54 | ||
55 | #define CIBAUD 0x100f0000 /* input baud rate (not used) */ | |
56 | #define CMSPAR 0x40000000 /* mark or space (stick) parity */ | |
440c7f26 AM |
57 | diff -urN glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c |
58 | --- glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c Thu Jun 28 14:44:58 2001 | |
59 | +++ glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c Thu Jun 28 14:45:54 2001 | |
60 | @@ -60,7 +60,7 @@ | |
61 | speed_t speed; | |
62 | { | |
63 | if ((speed & ~CBAUD) != 0 | |
64 | - && (speed < B57600 || speed > B460800)) | |
65 | + && (speed < B57600 || speed > __MAX_BAUD)) | |
66 | { | |
67 | __set_errno (EINVAL); | |
68 | return -1; | |
69 | @@ -82,7 +82,7 @@ | |
70 | speed_t speed; | |
71 | { | |
72 | if ((speed & ~CBAUD) != 0 | |
73 | - && (speed < B57600 || speed > B460800)) | |
74 | + && (speed < B57600 || speed > __MAX_BAUD)) | |
75 | { | |
76 | __set_errno (EINVAL); | |
77 | return -1; |