@@ -4,10 +4,6 @@ pub type c_char = u8;
4
4
pub type wchar_t = :: c_int ;
5
5
6
6
s ! {
7
- pub struct pthread_attr_t {
8
- __size: [ :: c_ulong; 7 ] ,
9
- }
10
-
11
7
pub struct stat {
12
8
pub st_dev: :: dev_t,
13
9
pub st_ino: :: ino_t,
82
78
pub f_spare: [ :: c_ulong; 4 ] ,
83
79
}
84
80
85
- pub struct siginfo_t {
86
- pub si_signo: :: c_int,
87
- pub si_errno: :: c_int,
88
- pub si_code: :: c_int,
89
- #[ doc( hidden) ]
90
- #[ deprecated(
91
- since="0.2.54" ,
92
- note="Please leave a comment on \
93
- https://github.com/rust-lang/libc/pull/1316 if you're using \
94
- this field"
95
- ) ]
96
- pub _pad: [ :: c_int; 29 ] ,
97
- _align: [ u64 ; 0 ] ,
98
- }
99
-
100
81
pub struct stack_t {
101
82
pub ss_sp: * mut :: c_void,
102
83
pub ss_flags: :: c_int,
103
84
pub ss_size: :: size_t,
104
85
}
105
86
106
- pub struct sigaction {
107
- pub sa_sigaction: :: sighandler_t,
108
- pub sa_mask: :: sigset_t,
109
- pub sa_flags: :: c_int,
110
- pub sa_restorer: :: Option <unsafe extern "C" fn ( ) >,
111
- }
112
-
113
87
pub struct ipc_perm {
114
88
pub __key: :: key_t,
115
89
pub uid: :: uid_t,
@@ -158,12 +132,6 @@ s! {
158
132
//pub const RLIM_INFINITY: ::rlim_t = !0;
159
133
pub const VEOF : usize = 4 ;
160
134
pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
161
- pub const RTLD_GLOBAL : :: c_int = 0x100 ;
162
- pub const RTLD_NOLOAD : :: c_int = 0x4 ;
163
- pub const TIOCGSOFTCAR : :: c_ulong = 21529 ;
164
- pub const TIOCSSOFTCAR : :: c_ulong = 21530 ;
165
- pub const TIOCGRS485 : :: c_int = 21550 ;
166
- pub const TIOCSRS485 : :: c_int = 21551 ;
167
135
//pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
168
136
//pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
169
137
//pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
@@ -290,44 +258,17 @@ pub const SIG_UNBLOCK: ::c_int = 1;
290
258
pub const POLLWRNORM : :: c_short = 256 ;
291
259
pub const POLLWRBAND : :: c_short = 512 ;
292
260
pub const O_ASYNC : :: c_int = 8192 ;
293
- pub const O_NDELAY : :: c_int = 2048 ;
294
- pub const EFD_NONBLOCK : :: c_int = 2048 ;
295
261
pub const F_GETLK : :: c_int = 5 ;
296
262
pub const F_GETOWN : :: c_int = 9 ;
297
263
pub const F_SETOWN : :: c_int = 8 ;
298
- pub const SFD_NONBLOCK : :: c_int = 2048 ;
299
- pub const TCSANOW : :: c_int = 0 ;
300
- pub const TCSADRAIN : :: c_int = 1 ;
301
- pub const TCSAFLUSH : :: c_int = 2 ;
302
- pub const TIOCLINUX : :: c_ulong = 21532 ;
303
- pub const TIOCGSERIAL : :: c_ulong = 21534 ;
304
- pub const TIOCEXCL : :: c_ulong = 21516 ;
305
- pub const TIOCNXCL : :: c_ulong = 21517 ;
306
- pub const TIOCSCTTY : :: c_ulong = 21518 ;
307
- pub const TIOCSTI : :: c_ulong = 21522 ;
308
- pub const TIOCMGET : :: c_ulong = 21525 ;
309
- pub const TIOCMBIS : :: c_ulong = 21526 ;
310
- pub const TIOCMBIC : :: c_ulong = 21527 ;
311
- pub const TIOCMSET : :: c_ulong = 21528 ;
312
- pub const TIOCCONS : :: c_ulong = 21533 ;
313
- pub const TIOCM_ST : :: c_int = 8 ;
314
- pub const TIOCM_SR : :: c_int = 16 ;
315
- pub const TIOCM_CTS : :: c_int = 32 ;
316
- pub const TIOCM_CAR : :: c_int = 64 ;
317
- pub const TIOCM_RNG : :: c_int = 128 ;
318
- pub const TIOCM_DSR : :: c_int = 256 ;
319
264
320
- pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4 ;
321
- pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4 ;
322
- pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4 ;
323
265
pub const O_DIRECT : :: c_int = 16384 ;
324
266
pub const O_DIRECTORY : :: c_int = 65536 ;
325
267
pub const O_NOFOLLOW : :: c_int = 131072 ;
326
268
pub const MAP_HUGETLB : :: c_int = 262144 ;
327
269
pub const MAP_LOCKED : :: c_int = 8192 ;
328
270
pub const MAP_NORESERVE : :: c_int = 16384 ;
329
271
pub const MAP_ANON : :: c_int = 32 ;
330
- pub const MAP_ANONYMOUS : :: c_int = 32 ;
331
272
pub const MAP_DENYWRITE : :: c_int = 2048 ;
332
273
pub const MAP_EXECUTABLE : :: c_int = 4096 ;
333
274
pub const MAP_POPULATE : :: c_int = 32768 ;
@@ -340,9 +281,6 @@ pub const ENOTNAM: ::c_int = 118;
340
281
pub const ENAVAIL : :: c_int = 119 ;
341
282
pub const EISNAM : :: c_int = 120 ;
342
283
pub const EREMOTEIO : :: c_int = 121 ;
343
- pub const FIOCLEX : :: c_int = 21585 ;
344
- pub const FIONCLEX : :: c_int = 21584 ;
345
- pub const FIONBIO : :: c_int = 21537 ;
346
284
pub const MCL_CURRENT : :: c_int = 1 ;
347
285
pub const MCL_FUTURE : :: c_int = 2 ;
348
286
pub const SIGSTKSZ : :: size_t = 8192 ;
@@ -398,24 +336,6 @@ pub const BSDLY: ::tcflag_t = 8192;
398
336
pub const FFDLY : :: tcflag_t = 32768 ;
399
337
pub const VTDLY : :: tcflag_t = 16384 ;
400
338
pub const XTABS : :: tcflag_t = 6144 ;
401
- pub const B0 : :: speed_t = 0 ;
402
- pub const B50 : :: speed_t = 1 ;
403
- pub const B75 : :: speed_t = 2 ;
404
- pub const B110 : :: speed_t = 3 ;
405
- pub const B134 : :: speed_t = 4 ;
406
- pub const B150 : :: speed_t = 5 ;
407
- pub const B200 : :: speed_t = 6 ;
408
- pub const B300 : :: speed_t = 7 ;
409
- pub const B600 : :: speed_t = 8 ;
410
- pub const B1200 : :: speed_t = 9 ;
411
- pub const B1800 : :: speed_t = 10 ;
412
- pub const B2400 : :: speed_t = 11 ;
413
- pub const B4800 : :: speed_t = 12 ;
414
- pub const B9600 : :: speed_t = 13 ;
415
- pub const B19200 : :: speed_t = 14 ;
416
- pub const B38400 : :: speed_t = 15 ;
417
- pub const EXTA : :: speed_t = 14 ;
418
- pub const EXTB : :: speed_t = 15 ;
419
339
pub const B57600 : :: speed_t = 4097 ;
420
340
pub const B115200 : :: speed_t = 4098 ;
421
341
pub const B230400 : :: speed_t = 4099 ;
@@ -438,27 +358,6 @@ pub const IEXTEN: ::tcflag_t = 32768;
438
358
pub const TOSTOP : :: tcflag_t = 256 ;
439
359
pub const FLUSHO : :: tcflag_t = 4096 ;
440
360
pub const EXTPROC : :: tcflag_t = 65536 ;
441
- pub const TCGETS : :: c_int = 21505 ;
442
- pub const TCSETS : :: c_int = 21506 ;
443
- pub const TCSETSW : :: c_int = 21507 ;
444
- pub const TCSETSF : :: c_int = 21508 ;
445
- pub const TCGETA : :: c_int = 21509 ;
446
- pub const TCSETA : :: c_int = 21510 ;
447
- pub const TCSETAW : :: c_int = 21511 ;
448
- pub const TCSETAF : :: c_int = 21512 ;
449
- pub const TCSBRK : :: c_int = 21513 ;
450
- pub const TCXONC : :: c_int = 21514 ;
451
- pub const TCFLSH : :: c_int = 21515 ;
452
- pub const TIOCINQ : :: c_int = 21531 ;
453
- pub const TIOCGPGRP : :: c_int = 21519 ;
454
- pub const TIOCSPGRP : :: c_int = 21520 ;
455
- pub const TIOCOUTQ : :: c_int = 21521 ;
456
- pub const TIOCGWINSZ : :: c_int = 21523 ;
457
- pub const TIOCSWINSZ : :: c_int = 21524 ;
458
- pub const FIONREAD : :: c_int = 21531 ;
459
- pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
460
- pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
461
- pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32 ;
462
361
463
362
pub const SYS_read : :: c_long = 63 ;
464
363
pub const SYS_write : :: c_long = 64 ;
0 commit comments