-
Notifications
You must be signed in to change notification settings - Fork 0
/
s7_cargo_libc_modrs.patch
180 lines (170 loc) · 7.28 KB
/
s7_cargo_libc_modrs.patch
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
--- a/src/vendor/libc/src/unix/notbsd/linux/musl/mod.rs
+++ b/src/vendor/libc/src/unix/notbsd/linux/musl/mod.rs
@@ -133,7 +133,7 @@
pub const RLIM_INFINITY: ::rlim_t = !0;
pub const RLIMIT_RTTIME: ::c_int = 15;
-pub const RLIMIT_NLIMITS: ::c_int = 16;
+// MJS pub const RLIMIT_NLIMITS: ::c_int = 16;
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
@@ -199,7 +199,7 @@
pub const TCSADRAIN: ::c_int = 1;
pub const TCSAFLUSH: ::c_int = 2;
-pub const TIOCINQ: ::c_int = ::FIONREAD;
+// MJS pub const TIOCINQ: ::c_int = ::FIONREAD;
pub const RTLD_GLOBAL: ::c_int = 0x100;
pub const RTLD_NOLOAD: ::c_int = 0x4;
@@ -209,60 +209,60 @@
pub const CLOCK_SGI_CYCLE: ::clockid_t = 10;
pub const CLOCK_TAI: ::clockid_t = 11;
-pub const MCL_CURRENT: ::c_int = 0x0001;
-pub const MCL_FUTURE: ::c_int = 0x0002;
+// MJS pub const MCL_CURRENT: ::c_int = 0x0001;
+// MJS pub const MCL_FUTURE: ::c_int = 0x0002;
-pub const CBAUD: ::tcflag_t = 0o0010017;
-pub const TAB1: ::c_int = 0x00000800;
-pub const TAB2: ::c_int = 0x00001000;
-pub const TAB3: ::c_int = 0x00001800;
-pub const CR1: ::c_int = 0x00000200;
-pub const CR2: ::c_int = 0x00000400;
-pub const CR3: ::c_int = 0x00000600;
-pub const FF1: ::c_int = 0x00008000;
-pub const BS1: ::c_int = 0x00002000;
-pub const VT1: ::c_int = 0x00004000;
-pub const VWERASE: usize = 14;
-pub const VREPRINT: usize = 12;
-pub const VSUSP: usize = 10;
-pub const VSTART: usize = 8;
-pub const VSTOP: usize = 9;
-pub const VDISCARD: usize = 13;
-pub const VTIME: usize = 5;
-pub const IXON: ::tcflag_t = 0x00000400;
-pub const IXOFF: ::tcflag_t = 0x00001000;
-pub const ONLCR: ::tcflag_t = 0x4;
-pub const CSIZE: ::tcflag_t = 0x00000030;
-pub const CS6: ::tcflag_t = 0x00000010;
-pub const CS7: ::tcflag_t = 0x00000020;
-pub const CS8: ::tcflag_t = 0x00000030;
-pub const CSTOPB: ::tcflag_t = 0x00000040;
-pub const CREAD: ::tcflag_t = 0x00000080;
-pub const PARENB: ::tcflag_t = 0x00000100;
-pub const PARODD: ::tcflag_t = 0x00000200;
-pub const HUPCL: ::tcflag_t = 0x00000400;
-pub const CLOCAL: ::tcflag_t = 0x00000800;
-pub const ECHOKE: ::tcflag_t = 0x00000800;
-pub const ECHOE: ::tcflag_t = 0x00000010;
-pub const ECHOK: ::tcflag_t = 0x00000020;
-pub const ECHONL: ::tcflag_t = 0x00000040;
-pub const ECHOPRT: ::tcflag_t = 0x00000400;
-pub const ECHOCTL: ::tcflag_t = 0x00000200;
-pub const ISIG: ::tcflag_t = 0x00000001;
-pub const ICANON: ::tcflag_t = 0x00000002;
-pub const PENDIN: ::tcflag_t = 0x00004000;
-pub const NOFLSH: ::tcflag_t = 0x00000080;
-pub const CIBAUD: ::tcflag_t = 0o02003600000;
-pub const CBAUDEX: ::tcflag_t = 0o010000;
-pub const VSWTC: usize = 7;
-pub const OLCUC: ::tcflag_t = 0o000002;
-pub const NLDLY: ::tcflag_t = 0o000400;
-pub const CRDLY: ::tcflag_t = 0o003000;
-pub const TABDLY: ::tcflag_t = 0o014000;
-pub const BSDLY: ::tcflag_t = 0o020000;
-pub const FFDLY: ::tcflag_t = 0o100000;
-pub const VTDLY: ::tcflag_t = 0o040000;
-pub const XTABS: ::tcflag_t = 0o014000;
+// MJS pub const CBAUD: ::tcflag_t = 0o0010017;
+// MJS pub const TAB1: ::c_int = 0x00000800;
+// MJS pub const TAB2: ::c_int = 0x00001000;
+// MJS pub const TAB3: ::c_int = 0x00001800;
+// MJS pub const CR1: ::c_int = 0x00000200;
+// MJS pub const CR2: ::c_int = 0x00000400;
+// MJS pub const CR3: ::c_int = 0x00000600;
+// MJS pub const FF1: ::c_int = 0x00008000;
+// MJS pub const BS1: ::c_int = 0x00002000;
+// MJS pub const VT1: ::c_int = 0x00004000;
+// MJS pub const VWERASE: usize = 14;
+// MJS pub const VREPRINT: usize = 12;
+// MJS pub const VSUSP: usize = 10;
+// MJS pub const VSTART: usize = 8;
+// MJS pub const VSTOP: usize = 9;
+// MJS pub const VDISCARD: usize = 13;
+// MJS pub const VTIME: usize = 5;
+// MJS pub const IXON: ::tcflag_t = 0x00000400;
+// MJS pub const IXOFF: ::tcflag_t = 0x00001000;
+// MJS pub const ONLCR: ::tcflag_t = 0x4;
+// MJS pub const CSIZE: ::tcflag_t = 0x00000030;
+// MJS pub const CS6: ::tcflag_t = 0x00000010;
+// MJS pub const CS7: ::tcflag_t = 0x00000020;
+// MJS pub const CS8: ::tcflag_t = 0x00000030;
+// MJS pub const CSTOPB: ::tcflag_t = 0x00000040;
+// MJS pub const CREAD: ::tcflag_t = 0x00000080;
+// MJS pub const PARENB: ::tcflag_t = 0x00000100;
+// MJS pub const PARODD: ::tcflag_t = 0x00000200;
+// MJS pub const HUPCL: ::tcflag_t = 0x00000400;
+// MJS pub const CLOCAL: ::tcflag_t = 0x00000800;
+// MJS pub const ECHOKE: ::tcflag_t = 0x00000800;
+// MJS pub const ECHOE: ::tcflag_t = 0x00000010;
+// MJS pub const ECHOK: ::tcflag_t = 0x00000020;
+// MJS pub const ECHONL: ::tcflag_t = 0x00000040;
+// MJS pub const ECHOPRT: ::tcflag_t = 0x00000400;
+// MJS pub const ECHOCTL: ::tcflag_t = 0x00000200;
+// MJS pub const ISIG: ::tcflag_t = 0x00000001;
+// MJS pub const ICANON: ::tcflag_t = 0x00000002;
+// MJS pub const PENDIN: ::tcflag_t = 0x00004000;
+// MJS pub const NOFLSH: ::tcflag_t = 0x00000080;
+// MJS pub const CIBAUD: ::tcflag_t = 0o02003600000;
+// MJS pub const CBAUDEX: ::tcflag_t = 0o010000;
+// MJS pub const VSWTC: usize = 7;
+// MJS pub const OLCUC: ::tcflag_t = 0o000002;
+// MJS pub const NLDLY: ::tcflag_t = 0o000400;
+// MJS pub const CRDLY: ::tcflag_t = 0o003000;
+// MJS pub const TABDLY: ::tcflag_t = 0o014000;
+// MJS pub const BSDLY: ::tcflag_t = 0o020000;
+// MJS pub const FFDLY: ::tcflag_t = 0o100000;
+// MJS pub const VTDLY: ::tcflag_t = 0o040000;
+// MJS pub const XTABS: ::tcflag_t = 0o014000;
pub const B0: ::speed_t = 0o000000;
pub const B50: ::speed_t = 0o000001;
@@ -282,21 +282,21 @@
pub const B38400: ::speed_t = 0o000017;
pub const EXTA: ::speed_t = B19200;
pub const EXTB: ::speed_t = B38400;
-pub const B57600: ::speed_t = 0o010001;
-pub const B115200: ::speed_t = 0o010002;
-pub const B230400: ::speed_t = 0o010003;
-pub const B460800: ::speed_t = 0o010004;
-pub const B500000: ::speed_t = 0o010005;
-pub const B576000: ::speed_t = 0o010006;
-pub const B921600: ::speed_t = 0o010007;
-pub const B1000000: ::speed_t = 0o010010;
-pub const B1152000: ::speed_t = 0o010011;
-pub const B1500000: ::speed_t = 0o010012;
-pub const B2000000: ::speed_t = 0o010013;
-pub const B2500000: ::speed_t = 0o010014;
-pub const B3000000: ::speed_t = 0o010015;
-pub const B3500000: ::speed_t = 0o010016;
-pub const B4000000: ::speed_t = 0o010017;
+// MJS pub const B57600: ::speed_t = 0o010001;
+// MJS pub const B115200: ::speed_t = 0o010002;
+// MJS pub const B230400: ::speed_t = 0o010003;
+// MJS pub const B460800: ::speed_t = 0o010004;
+// MJS pub const B500000: ::speed_t = 0o010005;
+// MJS pub const B576000: ::speed_t = 0o010006;
+// MJS pub const B921600: ::speed_t = 0o010007;
+// MJS pub const B1000000: ::speed_t = 0o010010;
+// MJS pub const B1152000: ::speed_t = 0o010011;
+// MJS pub const B1500000: ::speed_t = 0o010012;
+// MJS pub const B2000000: ::speed_t = 0o010013;
+// MJS pub const B2500000: ::speed_t = 0o010014;
+// MJS pub const B3000000: ::speed_t = 0o010015;
+// MJS pub const B3500000: ::speed_t = 0o010016;
+// MJS pub const B4000000: ::speed_t = 0o010017;
pub const SO_BINDTODEVICE: ::c_int = 25;
pub const SO_TIMESTAMP: ::c_int = 29;
@@ -306,7 +306,7 @@
pub const SO_BUSY_POLL: ::c_int = 46;
extern {
- pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
+// MJS pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
pub fn ptrace(request: ::c_int, ...) -> ::c_long;
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;