@@ -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,44 +258,17 @@ 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_GETLK : :: c_int = 5 ;
296262pub const F_GETOWN : :: c_int = 9 ;
297263pub 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 ;
319264
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 ;
323265pub const O_DIRECT : :: c_int = 16384 ;
324266pub const O_DIRECTORY : :: c_int = 65536 ;
325267pub const O_NOFOLLOW : :: c_int = 131072 ;
326268pub const MAP_HUGETLB : :: c_int = 262144 ;
327269pub const MAP_LOCKED : :: c_int = 8192 ;
328270pub const MAP_NORESERVE : :: c_int = 16384 ;
329271pub const MAP_ANON : :: c_int = 32 ;
330- pub const MAP_ANONYMOUS : :: c_int = 32 ;
331272pub const MAP_DENYWRITE : :: c_int = 2048 ;
332273pub const MAP_EXECUTABLE : :: c_int = 4096 ;
333274pub const MAP_POPULATE : :: c_int = 32768 ;
@@ -340,9 +281,6 @@ pub const ENOTNAM: ::c_int = 118;
340281pub const ENAVAIL : :: c_int = 119 ;
341282pub const EISNAM : :: c_int = 120 ;
342283pub 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 ;
346284pub const MCL_CURRENT : :: c_int = 1 ;
347285pub const MCL_FUTURE : :: c_int = 2 ;
348286pub const SIGSTKSZ : :: size_t = 8192 ;
@@ -398,24 +336,6 @@ pub const BSDLY: ::tcflag_t = 8192;
398336pub const FFDLY : :: tcflag_t = 32768 ;
399337pub const VTDLY : :: tcflag_t = 16384 ;
400338pub 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 ;
419339pub const B57600 : :: speed_t = 4097 ;
420340pub const B115200 : :: speed_t = 4098 ;
421341pub const B230400 : :: speed_t = 4099 ;
@@ -438,27 +358,6 @@ pub const IEXTEN: ::tcflag_t = 32768;
438358pub const TOSTOP : :: tcflag_t = 256 ;
439359pub const FLUSHO : :: tcflag_t = 4096 ;
440360pub 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 ;
462361
463362pub const SYS_read : :: c_long = 63 ;
464363pub const SYS_write : :: c_long = 64 ;
0 commit comments