fix TCS* definitions in mips termios.h
authorSzabolcs Nagy <nsz@port70.net>
Sun, 3 Jul 2016 15:09:29 +0000 (17:09 +0200)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Jul 2016 19:02:24 +0000 (15:02 -0400)
these were incorrectly using the generic definitions.

arch/mips/bits/termios.h
arch/mips64/bits/termios.h
arch/mipsn32/bits/termios.h

index 55ba132..29b4b22 100644 (file)
@@ -142,9 +142,9 @@ struct termios
 #define TCOFLUSH  1
 #define TCIOFLUSH 2
 
-#define TCSANOW   0
-#define TCSADRAIN 1
-#define TCSAFLUSH 2
+#define TCSANOW 0x540e
+#define TCSADRAIN 0x540f
+#define TCSAFLUSH 0x5410
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define EXTA    0000016
index 6a1205d..f559f76 100644 (file)
@@ -141,9 +141,9 @@ struct termios {
 #define TCOFLUSH  1
 #define TCIOFLUSH 2
 
-#define TCSANOW   0
-#define TCSADRAIN 1
-#define TCSAFLUSH 2
+#define TCSANOW 0x540e
+#define TCSADRAIN 0x540f
+#define TCSAFLUSH 0x5410
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define EXTA    0000016
index 6a1205d..f559f76 100644 (file)
@@ -141,9 +141,9 @@ struct termios {
 #define TCOFLUSH  1
 #define TCIOFLUSH 2
 
-#define TCSANOW   0
-#define TCSADRAIN 1
-#define TCSAFLUSH 2
+#define TCSANOW 0x540e
+#define TCSADRAIN 0x540f
+#define TCSAFLUSH 0x5410
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define EXTA    0000016