This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sparc/bits/termios.h once again


Hi!

What was the reason not to fix the CBAUDEX and the following 4 defines?
I mean programs using those values did not work anyway (well, did, but with
a different baudrate than they expected), and keeping the broken values will
only mean that newly compiled programs are broken as well.
I've also deleted the last four baudrates, because they are clearly broken
(the CBAUD mask is 100f) and none of the SPARC serial chips support it
anyway. Once the need arises, we could come up with better constants (use
some of the top 16 bits).

2000-02-17  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/sparc/bits/termios.h: Sync with kernel.

--- libc/sysdeps/unix/sysv/linux/sparc/bits/termios.h.jj	Thu Feb 17 17:53:10 2000
+++ libc/sysdeps/unix/sysv/linux/sparc/bits/termios.h	Thu Feb 17 18:33:00 2000
@@ -140,11 +140,11 @@ struct termios
 #define PARODD	0x00000200
 #define HUPCL	0x00000400
 #define CLOCAL	0x00000800
-#define CBAUDEX 0x00010000
-#define  B57600  0x00010001
-#define  B115200 0x00010002
-#define  B230400 0x00010003
-#define  B460800 0x00010004
+#define CBAUDEX 0x00001000
+#define  B57600  0x00001001
+#define  B115200 0x00001002
+#define  B230400 0x00001003
+#define  B460800 0x00001004
 #define  B76800  0x00001005
 #define  B153600 0x00001006
 #define  B307200 0x00001007
@@ -156,10 +156,6 @@ struct termios
 #define B1152000 0x0000100d
 #define B1500000 0x0000100e
 #define B2000000 0x0000100f
-#define B2500000 0x00001010
-#define B3000000 0x00001011
-#define B3500000 0x00001012
-#define B4000000 0x00001013
 
 #define CIBAUD	0x100f0000	/* input baud rate (not used) */
 #define CMSPAR	0x40000000	/* mark or space (stick) parity */

Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.46 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]