@@ -4,10 +4,6 @@ pub type c_char = u8;
44pub type wchar_t = :: c_int ;
55
66s ! {
7- pub struct pthread_attr_t {
8- __size: [ :: c_ulong; 7 ] ,
9- }
10-
117 pub struct stat {
128 pub st_dev: :: dev_t,
139 pub st_ino: :: ino_t,
8278 pub f_spare: [ :: c_ulong; 4 ] ,
8379 }
8480
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-
10081 pub struct stack_t {
10182 pub ss_sp: * mut :: c_void,
10283 pub ss_flags: :: c_int,
10384 pub ss_size: :: size_t,
10485 }
10586
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-
11387 pub struct ipc_perm {
11488 pub __key: :: key_t,
11589 pub uid: :: uid_t,
@@ -158,12 +132,6 @@ s! {
158132//pub const RLIM_INFINITY: ::rlim_t = !0;
159133pub const VEOF : usize = 4 ;
160134pub 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 ;
167135//pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
168136//pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
169137//pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
@@ -290,38 +258,12 @@ pub const SIG_UNBLOCK: ::c_int = 1;
290258pub const POLLWRNORM : :: c_short = 256 ;
291259pub const POLLWRBAND : :: c_short = 512 ;
292260pub const O_ASYNC : :: c_int = 8192 ;
293- pub const O_NDELAY : :: c_int = 2048 ;
294- pub const EFD_NONBLOCK : :: c_int = 2048 ;
295261pub const F_SETOWN : :: c_int = 8 ;
296262pub const F_GETOWN : :: c_int = 9 ;
297263pub const F_GETLK : :: c_int = 12 ;
298264pub const F_SETLK : :: c_int = 13 ;
299265pub const F_SETLKW : :: c_int = 14 ;
300- pub const SFD_NONBLOCK : :: c_int = 2048 ;
301- pub const TCSANOW : :: c_int = 0 ;
302- pub const TCSADRAIN : :: c_int = 1 ;
303- pub const TCSAFLUSH : :: c_int = 2 ;
304- pub const TIOCLINUX : :: c_ulong = 21532 ;
305- pub const TIOCGSERIAL : :: c_ulong = 21534 ;
306- pub const TIOCEXCL : :: c_ulong = 21516 ;
307- pub const TIOCNXCL : :: c_ulong = 21517 ;
308- pub const TIOCSCTTY : :: c_ulong = 21518 ;
309- pub const TIOCSTI : :: c_ulong = 21522 ;
310- pub const TIOCMGET : :: c_ulong = 21525 ;
311- pub const TIOCMBIS : :: c_ulong = 21526 ;
312- pub const TIOCMBIC : :: c_ulong = 21527 ;
313- pub const TIOCMSET : :: c_ulong = 21528 ;
314- pub const TIOCCONS : :: c_ulong = 21533 ;
315- pub const TIOCM_ST : :: c_int = 8 ;
316- pub const TIOCM_SR : :: c_int = 16 ;
317- pub const TIOCM_CTS : :: c_int = 32 ;
318- pub const TIOCM_CAR : :: c_int = 64 ;
319- pub const TIOCM_RNG : :: c_int = 128 ;
320- pub const TIOCM_DSR : :: c_int = 256 ;
321266
322- pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4 ;
323- pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4 ;
324- pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4 ;
325267pub const O_DIRECT : :: c_int = 16384 ;
326268pub const O_DIRECTORY : :: c_int = 65536 ;
327269pub const O_LARGEFILE : :: c_int = 0o0100000 ;
@@ -330,7 +272,6 @@ pub const MAP_HUGETLB: ::c_int = 262144;
330272pub const MAP_LOCKED : :: c_int = 8192 ;
331273pub const MAP_NORESERVE : :: c_int = 16384 ;
332274pub const MAP_ANON : :: c_int = 32 ;
333- pub const MAP_ANONYMOUS : :: c_int = 32 ;
334275pub const MAP_DENYWRITE : :: c_int = 2048 ;
335276pub const MAP_EXECUTABLE : :: c_int = 4096 ;
336277pub const MAP_POPULATE : :: c_int = 32768 ;
@@ -343,9 +284,6 @@ pub const ENOTNAM: ::c_int = 118;
343284pub const ENAVAIL : :: c_int = 119 ;
344285pub const EISNAM : :: c_int = 120 ;
345286pub const EREMOTEIO : :: c_int = 121 ;
346- pub const FIOCLEX : :: c_int = 21585 ;
347- pub const FIONCLEX : :: c_int = 21584 ;
348- pub const FIONBIO : :: c_int = 21537 ;
349287pub const MCL_CURRENT : :: c_int = 1 ;
350288pub const MCL_FUTURE : :: c_int = 2 ;
351289pub const MCL_ONFAULT : :: c_int = 4 ;
@@ -402,24 +340,6 @@ pub const BSDLY: ::tcflag_t = 8192;
402340pub const FFDLY : :: tcflag_t = 32768 ;
403341pub const VTDLY : :: tcflag_t = 16384 ;
404342pub const XTABS : :: tcflag_t = 6144 ;
405- pub const B0 : :: speed_t = 0 ;
406- pub const B50 : :: speed_t = 1 ;
407- pub const B75 : :: speed_t = 2 ;
408- pub const B110 : :: speed_t = 3 ;
409- pub const B134 : :: speed_t = 4 ;
410- pub const B150 : :: speed_t = 5 ;
411- pub const B200 : :: speed_t = 6 ;
412- pub const B300 : :: speed_t = 7 ;
413- pub const B600 : :: speed_t = 8 ;
414- pub const B1200 : :: speed_t = 9 ;
415- pub const B1800 : :: speed_t = 10 ;
416- pub const B2400 : :: speed_t = 11 ;
417- pub const B4800 : :: speed_t = 12 ;
418- pub const B9600 : :: speed_t = 13 ;
419- pub const B19200 : :: speed_t = 14 ;
420- pub const B38400 : :: speed_t = 15 ;
421- pub const EXTA : :: speed_t = 14 ;
422- pub const EXTB : :: speed_t = 15 ;
423343pub const B57600 : :: speed_t = 4097 ;
424344pub const B115200 : :: speed_t = 4098 ;
425345pub const B230400 : :: speed_t = 4099 ;
@@ -442,27 +362,6 @@ pub const IEXTEN: ::tcflag_t = 32768;
442362pub const TOSTOP : :: tcflag_t = 256 ;
443363pub const FLUSHO : :: tcflag_t = 4096 ;
444364pub const EXTPROC : :: tcflag_t = 65536 ;
445- pub const TCGETS : :: c_int = 21505 ;
446- pub const TCSETS : :: c_int = 21506 ;
447- pub const TCSETSW : :: c_int = 21507 ;
448- pub const TCSETSF : :: c_int = 21508 ;
449- pub const TCGETA : :: c_int = 21509 ;
450- pub const TCSETA : :: c_int = 21510 ;
451- pub const TCSETAW : :: c_int = 21511 ;
452- pub const TCSETAF : :: c_int = 21512 ;
453- pub const TCSBRK : :: c_int = 21513 ;
454- pub const TCXONC : :: c_int = 21514 ;
455- pub const TCFLSH : :: c_int = 21515 ;
456- pub const TIOCINQ : :: c_int = 21531 ;
457- pub const TIOCGPGRP : :: c_int = 21519 ;
458- pub const TIOCSPGRP : :: c_int = 21520 ;
459- pub const TIOCOUTQ : :: c_int = 21521 ;
460- pub const TIOCGWINSZ : :: c_int = 21523 ;
461- pub const TIOCSWINSZ : :: c_int = 21524 ;
462- pub const FIONREAD : :: c_int = 21531 ;
463- pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
464- pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
465- pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32 ;
466365
467366pub const SYS_read : :: c_long = 63 ;
468367pub const SYS_write : :: c_long = 64 ;
0 commit comments