summaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches-0.9.7/003-fix_termios_constants_on_mips.patch
blob: 73e22a590c024d20bdb6664e7096767ef139f65c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
From 144dc4f479d49b8148f8b1b6b506b0f1096f911b Mon Sep 17 00:00:00 2001
From: Rich Felker <dalias@aerifal.cx>
Date: Fri, 23 Nov 2012 17:23:38 -0500
Subject: [PATCH] fix termios constants on mips

---
 arch/mips/bits/termios.h |   31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
index 9f6abd8..179af8e 100644
--- a/arch/mips/bits/termios.h
+++ b/arch/mips/bits/termios.h
@@ -14,19 +14,20 @@ struct termios
 #define VQUIT     1
 #define VERASE    2
 #define VKILL     3
-#define VEOF      4
+#define VMIN      4
 #define VTIME     5
-#define VMIN      6
+#define VEOL2     6
 #define VSWTC     7
+#define VSWTCH    7
 #define VSTART    8
 #define VSTOP     9
 #define VSUSP    10
-#define VEOL     11
 #define VREPRINT 12
 #define VDISCARD 13
 #define VWERASE  14
 #define VLNEXT   15
-#define VEOL2    16
+#define VEOF     16
+#define VEOL     17
 
 #define IGNBRK  0000001
 #define BRKINT  0000002
@@ -42,6 +43,7 @@ struct termios
 #define IXANY   0004000
 #define IXOFF   0010000
 #define IMAXBEL 0020000
+#define IUTF8   0040000
 
 #define OPOST  0000001
 #define OLCUC  0000002
@@ -94,7 +96,10 @@ struct termios
 #define B9600    0000015
 #define B19200   0000016
 #define B38400   0000017
+#define EXTA     0000016
+#define EXTB     0000017
 
+#define BOTHER   0010000
 #define B57600   0010001
 #define B115200  0010002
 #define B230400  0010003
@@ -124,26 +129,32 @@ struct termios
 #define PARODD 0001000
 #define HUPCL  0002000
 #define CLOCAL 0004000
+#define CBAUDEX 0010000
 
+#define CIBAUD   002003600000
+#define CMSPAR   010000000000
 #define CRTSCTS  020000000000
+#define IBSHIFT 16
 
 #define ISIG   0000001
 #define ICANON 0000002
+#define XCASE  0000004
 #define ECHO   0000010
 #define ECHOE  0000020
 #define ECHOK  0000040
 #define ECHONL 0000100
 #define NOFLSH 0000200
-#define TOSTOP 0000400
-#define IEXTEN 0100000
-
-/* Extensions? */
-#define CBAUDEX 0010000
+#define IEXTEN 0000400
 #define ECHOCTL 0001000
 #define ECHOPRT 0002000
 #define ECHOKE 0004000
-#define FLUSHO 0010000
+#define FLUSHO 0020000
 #define PENDIN 0040000
+#define TOSTOP 0100000
+#define ITOSTOP 0100000
+#define EXTPROC 0200000
+
+#define TIOCSER_TEMT 1
 
 #define TCOOFF 0
 #define TCOON  1
-- 
1.7.10.4