musl: backport an upstream fix for MIPS and termios constants
[openwrt/openwrt.git] / toolchain / musl / patches-0.9.7 / 003-fix_termios_constants_on_mips.patch
1 From 144dc4f479d49b8148f8b1b6b506b0f1096f911b Mon Sep 17 00:00:00 2001
2 From: Rich Felker <dalias@aerifal.cx>
3 Date: Fri, 23 Nov 2012 17:23:38 -0500
4 Subject: [PATCH] fix termios constants on mips
5
6 ---
7 arch/mips/bits/termios.h | 31 +++++++++++++++++++++----------
8 1 file changed, 21 insertions(+), 10 deletions(-)
9
10 diff --git a/arch/mips/bits/termios.h b/arch/mips/bits/termios.h
11 index 9f6abd8..179af8e 100644
12 --- a/arch/mips/bits/termios.h
13 +++ b/arch/mips/bits/termios.h
14 @@ -14,19 +14,20 @@ struct termios
15 #define VQUIT 1
16 #define VERASE 2
17 #define VKILL 3
18 -#define VEOF 4
19 +#define VMIN 4
20 #define VTIME 5
21 -#define VMIN 6
22 +#define VEOL2 6
23 #define VSWTC 7
24 +#define VSWTCH 7
25 #define VSTART 8
26 #define VSTOP 9
27 #define VSUSP 10
28 -#define VEOL 11
29 #define VREPRINT 12
30 #define VDISCARD 13
31 #define VWERASE 14
32 #define VLNEXT 15
33 -#define VEOL2 16
34 +#define VEOF 16
35 +#define VEOL 17
36
37 #define IGNBRK 0000001
38 #define BRKINT 0000002
39 @@ -42,6 +43,7 @@ struct termios
40 #define IXANY 0004000
41 #define IXOFF 0010000
42 #define IMAXBEL 0020000
43 +#define IUTF8 0040000
44
45 #define OPOST 0000001
46 #define OLCUC 0000002
47 @@ -94,7 +96,10 @@ struct termios
48 #define B9600 0000015
49 #define B19200 0000016
50 #define B38400 0000017
51 +#define EXTA 0000016
52 +#define EXTB 0000017
53
54 +#define BOTHER 0010000
55 #define B57600 0010001
56 #define B115200 0010002
57 #define B230400 0010003
58 @@ -124,26 +129,32 @@ struct termios
59 #define PARODD 0001000
60 #define HUPCL 0002000
61 #define CLOCAL 0004000
62 +#define CBAUDEX 0010000
63
64 +#define CIBAUD 002003600000
65 +#define CMSPAR 010000000000
66 #define CRTSCTS 020000000000
67 +#define IBSHIFT 16
68
69 #define ISIG 0000001
70 #define ICANON 0000002
71 +#define XCASE 0000004
72 #define ECHO 0000010
73 #define ECHOE 0000020
74 #define ECHOK 0000040
75 #define ECHONL 0000100
76 #define NOFLSH 0000200
77 -#define TOSTOP 0000400
78 -#define IEXTEN 0100000
79 -
80 -/* Extensions? */
81 -#define CBAUDEX 0010000
82 +#define IEXTEN 0000400
83 #define ECHOCTL 0001000
84 #define ECHOPRT 0002000
85 #define ECHOKE 0004000
86 -#define FLUSHO 0010000
87 +#define FLUSHO 0020000
88 #define PENDIN 0040000
89 +#define TOSTOP 0100000
90 +#define ITOSTOP 0100000
91 +#define EXTPROC 0200000
92 +
93 +#define TIOCSER_TEMT 1
94
95 #define TCOOFF 0
96 #define TCOON 1
97 --
98 1.7.10.4
99