1
1
pub type blksize_t = i64 ;
2
2
pub type c_char = u8 ;
3
- pub type c_long = i64 ;
4
- pub type c_ulong = u64 ;
5
3
pub type nlink_t = u64 ;
6
- pub type suseconds_t = i64 ;
7
4
pub type wchar_t = i32 ;
8
5
pub type greg_t = u64 ;
9
6
pub type __u64 = u64 ;
10
7
11
8
s ! {
9
+ pub struct ipc_perm {
10
+ pub __ipc_perm_key: :: key_t,
11
+ pub uid: :: uid_t,
12
+ pub gid: :: gid_t,
13
+ pub cuid: :: uid_t,
14
+ pub cgid: :: gid_t,
15
+ pub mode: :: mode_t,
16
+ pub __seq: :: c_int,
17
+ __pad1: :: c_long,
18
+ __pad2: :: c_long,
19
+ }
20
+
12
21
pub struct stat {
13
22
pub st_dev: :: dev_t,
14
23
pub st_ino: :: ino_t,
@@ -115,46 +124,8 @@ cfg_if! {
115
124
}
116
125
}
117
126
118
- pub const POSIX_FADV_DONTNEED : :: c_int = 6 ;
119
- pub const POSIX_FADV_NOREUSE : :: c_int = 7 ;
120
-
121
127
pub const VEOF : usize = 4 ;
122
128
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
123
- pub const RTLD_GLOBAL : :: c_int = 0x100 ;
124
- pub const RTLD_NOLOAD : :: c_int = 0x4 ;
125
- pub const SFD_CLOEXEC : :: c_int = 0x080000 ;
126
-
127
- pub const NCCS : usize = 32 ;
128
-
129
- pub const O_TRUNC : :: c_int = 512 ;
130
- pub const O_NOATIME : :: c_int = 0o1000000 ;
131
- pub const O_CLOEXEC : :: c_int = 0x80000 ;
132
- pub const O_PATH : :: c_int = 0o10000000 ;
133
- pub const O_TMPFILE : :: c_int = 0o20000000 | O_DIRECTORY ;
134
-
135
- pub const EBFONT : :: c_int = 59 ;
136
- pub const ENOSTR : :: c_int = 60 ;
137
- pub const ENODATA : :: c_int = 61 ;
138
- pub const ETIME : :: c_int = 62 ;
139
- pub const ENOSR : :: c_int = 63 ;
140
- pub const ENONET : :: c_int = 64 ;
141
- pub const ENOPKG : :: c_int = 65 ;
142
- pub const EREMOTE : :: c_int = 66 ;
143
- pub const ENOLINK : :: c_int = 67 ;
144
- pub const EADV : :: c_int = 68 ;
145
- pub const ESRMNT : :: c_int = 69 ;
146
- pub const ECOMM : :: c_int = 70 ;
147
- pub const EPROTO : :: c_int = 71 ;
148
- pub const EDOTDOT : :: c_int = 73 ;
149
-
150
- pub const SA_NODEFER : :: c_int = 0x40000000 ;
151
- pub const SA_RESETHAND : :: c_int = 0x80000000 ;
152
- pub const SA_RESTART : :: c_int = 0x10000000 ;
153
- pub const SA_NOCLDSTOP : :: c_int = 0x00000001 ;
154
-
155
- pub const EPOLL_CLOEXEC : :: c_int = 0x80000 ;
156
-
157
- pub const EFD_CLOEXEC : :: c_int = 0x80000 ;
158
129
159
130
pub const EUCLEAN : :: c_int = 117 ;
160
131
pub const ENOTNAM : :: c_int = 118 ;
@@ -190,24 +161,12 @@ pub const SO_ERROR: ::c_int = 4;
190
161
pub const SO_RCVTIMEO : :: c_int = 20 ;
191
162
pub const SO_REUSEADDR : :: c_int = 2 ;
192
163
pub const SO_SNDTIMEO : :: c_int = 21 ;
193
- pub const SO_BINDTODEVICE : :: c_int = 25 ;
194
- pub const SO_TIMESTAMP : :: c_int = 29 ;
195
- pub const SO_MARK : :: c_int = 36 ;
196
164
pub const SO_PROTOCOL : :: c_int = 38 ;
197
165
pub const SO_DOMAIN : :: c_int = 39 ;
198
- pub const SO_RXQ_OVFL : :: c_int = 40 ;
199
- pub const SO_PEEK_OFF : :: c_int = 42 ;
200
- pub const SO_BUSY_POLL : :: c_int = 46 ;
201
166
202
167
pub const SOCK_STREAM : :: c_int = 1 ;
203
168
pub const SOCK_DGRAM : :: c_int = 2 ;
204
169
205
- pub const RLIMIT_RSS : :: __rlimit_resource_t = 5 ;
206
- pub const RLIMIT_AS : :: __rlimit_resource_t = 9 ;
207
- pub const RLIMIT_MEMLOCK : :: __rlimit_resource_t = 8 ;
208
- pub const RLIMIT_NOFILE : :: __rlimit_resource_t = 7 ;
209
- pub const RLIMIT_NPROC : :: __rlimit_resource_t = 6 ;
210
-
211
170
pub const O_NOCTTY : :: c_int = 256 ;
212
171
pub const O_SYNC : :: c_int = 1052672 ;
213
172
pub const O_RSYNC : :: c_int = 1052672 ;
@@ -222,7 +181,6 @@ pub const MAP_GROWSDOWN: ::c_int = 0x0100;
222
181
pub const MAP_LOCKED : :: c_int = 0x02000 ;
223
182
pub const MAP_NORESERVE : :: c_int = 0x04000 ;
224
183
pub const MAP_ANON : :: c_int = 0x0020 ;
225
- pub const MAP_ANONYMOUS : :: c_int = 0x0020 ;
226
184
pub const MAP_DENYWRITE : :: c_int = 0x0800 ;
227
185
pub const MAP_EXECUTABLE : :: c_int = 0x01000 ;
228
186
pub const MAP_POPULATE : :: c_int = 0x08000 ;
@@ -336,15 +294,12 @@ pub const SIGURG: ::c_int = 23;
336
294
pub const SIGIO : :: c_int = 29 ;
337
295
pub const SIGSYS : :: c_int = 31 ;
338
296
pub const SIGSTKFLT : :: c_int = 16 ;
339
- #[ deprecated( since = "0.2.55" , note = "Use SIGSYS instead" ) ]
340
- pub const SIGUNUSED : :: c_int = 31 ;
341
297
pub const SIGPOLL : :: c_int = 29 ;
342
298
pub const SIGPWR : :: c_int = 30 ;
343
299
pub const SIG_BLOCK : :: c_int = 0x000000 ;
344
300
pub const SIG_UNBLOCK : :: c_int = 0x01 ;
345
301
346
302
pub const O_ASYNC : :: c_int = 0x2000 ;
347
- pub const O_NDELAY : :: c_int = 0x800 ;
348
303
349
304
pub const VEOL : usize = 11 ;
350
305
pub const VEOL2 : usize = 16 ;
@@ -355,16 +310,9 @@ pub const FLUSHO: ::tcflag_t = 0x00001000;
355
310
356
311
pub const EXTPROC : :: tcflag_t = 0x00010000 ;
357
312
358
- pub const PTRACE_DETACH : :: c_uint = 17 ;
359
-
360
313
pub const MCL_CURRENT : :: c_int = 0x0001 ;
361
314
pub const MCL_FUTURE : :: c_int = 0x0002 ;
362
315
363
- pub const EFD_NONBLOCK : :: c_int = 0x800 ;
364
-
365
- pub const F_RDLCK : :: c_int = 0 ;
366
- pub const F_WRLCK : :: c_int = 1 ;
367
- pub const F_UNLCK : :: c_int = 2 ;
368
316
pub const F_GETLK : :: c_int = 5 ;
369
317
pub const F_GETOWN : :: c_int = 9 ;
370
318
pub const F_SETOWN : :: c_int = 8 ;
@@ -374,8 +322,6 @@ pub const F_OFD_GETLK: ::c_int = 36;
374
322
pub const F_OFD_SETLK : :: c_int = 37 ;
375
323
pub const F_OFD_SETLKW : :: c_int = 38 ;
376
324
377
- pub const SFD_NONBLOCK : :: c_int = 0x0800 ;
378
-
379
325
pub const TCGETS : :: c_int = 0x5401 ;
380
326
pub const TCSETS : :: c_int = 0x5402 ;
381
327
pub const TCSETSW : :: c_int = 0x5403 ;
@@ -405,12 +351,6 @@ pub const TIOCMBIC: ::c_int = 0x5417;
405
351
pub const TIOCMSET : :: c_int = 0x5418 ;
406
352
pub const FIONREAD : :: c_int = 0x541B ;
407
353
pub const TIOCCONS : :: c_int = 0x541D ;
408
- pub const TIOCSBRK : :: c_int = 0x5427 ;
409
- pub const TIOCCBRK : :: c_int = 0x5428 ;
410
-
411
- pub const TCSANOW : :: c_int = 0 ;
412
- pub const TCSADRAIN : :: c_int = 1 ;
413
- pub const TCSAFLUSH : :: c_int = 2 ;
414
354
415
355
pub const TIOCLINUX : :: c_int = 0x541C ;
416
356
pub const TIOCGSERIAL : :: c_int = 0x541E ;
@@ -449,24 +389,6 @@ pub const VT1: ::tcflag_t = 0x00004000;
449
389
pub const XTABS : :: tcflag_t = 0o014000 ;
450
390
451
391
pub const CBAUD : :: speed_t = 0o010017 ;
452
- pub const B0 : :: speed_t = 0o000000 ;
453
- pub const B50 : :: speed_t = 0o000001 ;
454
- pub const B75 : :: speed_t = 0o000002 ;
455
- pub const B110 : :: speed_t = 0o000003 ;
456
- pub const B134 : :: speed_t = 0o000004 ;
457
- pub const B150 : :: speed_t = 0o000005 ;
458
- pub const B200 : :: speed_t = 0o000006 ;
459
- pub const B300 : :: speed_t = 0o000007 ;
460
- pub const B600 : :: speed_t = 0o000010 ;
461
- pub const B1200 : :: speed_t = 0o000011 ;
462
- pub const B1800 : :: speed_t = 0o000012 ;
463
- pub const B2400 : :: speed_t = 0o000013 ;
464
- pub const B4800 : :: speed_t = 0o000014 ;
465
- pub const B9600 : :: speed_t = 0o000015 ;
466
- pub const B19200 : :: speed_t = 0o000016 ;
467
- pub const B38400 : :: speed_t = 0o000017 ;
468
- pub const EXTA : :: speed_t = B19200 ;
469
- pub const EXTB : :: speed_t = B38400 ;
470
392
pub const CSIZE : :: tcflag_t = 0o000060 ;
471
393
pub const CS6 : :: tcflag_t = 0o000020 ;
472
394
pub const CS7 : :: tcflag_t = 0o000040 ;
0 commit comments