@@ -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,
5854 pub ss_size: :: size_t,
5955 }
6056
61- pub struct sigaction {
62- pub sa_sigaction: :: sighandler_t,
63- pub sa_mask: :: sigset_t,
64- pub sa_flags: :: c_int,
65- pub sa_restorer: :: Option <unsafe extern "C" fn ( ) >,
66- }
67-
6857 pub struct ipc_perm {
6958 pub __key: :: key_t,
7059 pub uid: :: uid_t,
@@ -121,12 +110,6 @@ s_no_extra_traits! {
121110//pub const RLIM_INFINITY: ::rlim_t = !0;
122111pub const VEOF : usize = 4 ;
123112pub const RTLD_DEEPBIND : :: c_int = 0x8 ;
124- pub const RTLD_GLOBAL : :: c_int = 0x100 ;
125- pub const RTLD_NOLOAD : :: c_int = 0x4 ;
126- pub const TIOCGSOFTCAR : :: c_ulong = 21529 ;
127- pub const TIOCSSOFTCAR : :: c_ulong = 21530 ;
128- pub const TIOCGRS485 : :: c_int = 21550 ;
129- pub const TIOCSRS485 : :: c_int = 21551 ;
130113//pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
131114//pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
132115//pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
@@ -253,38 +236,12 @@ pub const SIG_UNBLOCK: ::c_int = 1;
253236pub const POLLWRNORM : :: c_short = 256 ;
254237pub const POLLWRBAND : :: c_short = 512 ;
255238pub const O_ASYNC : :: c_int = 8192 ;
256- pub const O_NDELAY : :: c_int = 2048 ;
257- pub const EFD_NONBLOCK : :: c_int = 2048 ;
258239pub const F_SETOWN : :: c_int = 8 ;
259240pub const F_GETOWN : :: c_int = 9 ;
260241pub const F_GETLK : :: c_int = 12 ;
261242pub const F_SETLK : :: c_int = 13 ;
262243pub const F_SETLKW : :: c_int = 14 ;
263- pub const SFD_NONBLOCK : :: c_int = 2048 ;
264- pub const TCSANOW : :: c_int = 0 ;
265- pub const TCSADRAIN : :: c_int = 1 ;
266- pub const TCSAFLUSH : :: c_int = 2 ;
267- pub const TIOCLINUX : :: c_ulong = 21532 ;
268- pub const TIOCGSERIAL : :: c_ulong = 21534 ;
269- pub const TIOCEXCL : :: c_ulong = 21516 ;
270- pub const TIOCNXCL : :: c_ulong = 21517 ;
271- pub const TIOCSCTTY : :: c_ulong = 21518 ;
272- pub const TIOCSTI : :: c_ulong = 21522 ;
273- pub const TIOCMGET : :: c_ulong = 21525 ;
274- pub const TIOCMBIS : :: c_ulong = 21526 ;
275- pub const TIOCMBIC : :: c_ulong = 21527 ;
276- pub const TIOCMSET : :: c_ulong = 21528 ;
277- pub const TIOCCONS : :: c_ulong = 21533 ;
278- pub const TIOCM_ST : :: c_int = 8 ;
279- pub const TIOCM_SR : :: c_int = 16 ;
280- pub const TIOCM_CTS : :: c_int = 32 ;
281- pub const TIOCM_CAR : :: c_int = 64 ;
282- pub const TIOCM_RNG : :: c_int = 128 ;
283- pub const TIOCM_DSR : :: c_int = 256 ;
284244
285- pub const __SIZEOF_PTHREAD_CONDATTR_T: usize = 4 ;
286- pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4 ;
287- pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4 ;
288245pub const O_DIRECT : :: c_int = 16384 ;
289246pub const O_DIRECTORY : :: c_int = 65536 ;
290247pub const O_LARGEFILE : :: c_int = 0o0100000 ;
@@ -293,7 +250,6 @@ pub const MAP_HUGETLB: ::c_int = 262144;
293250pub const MAP_LOCKED : :: c_int = 8192 ;
294251pub const MAP_NORESERVE : :: c_int = 16384 ;
295252pub const MAP_ANON : :: c_int = 32 ;
296- pub const MAP_ANONYMOUS : :: c_int = 32 ;
297253pub const MAP_DENYWRITE : :: c_int = 2048 ;
298254pub const MAP_EXECUTABLE : :: c_int = 4096 ;
299255pub const MAP_POPULATE : :: c_int = 32768 ;
@@ -306,9 +262,6 @@ pub const ENOTNAM: ::c_int = 118;
306262pub const ENAVAIL : :: c_int = 119 ;
307263pub const EISNAM : :: c_int = 120 ;
308264pub const EREMOTEIO : :: c_int = 121 ;
309- pub const FIOCLEX : :: c_int = 21585 ;
310- pub const FIONCLEX : :: c_int = 21584 ;
311- pub const FIONBIO : :: c_int = 21537 ;
312265pub const MCL_CURRENT : :: c_int = 1 ;
313266pub const MCL_FUTURE : :: c_int = 2 ;
314267pub const MCL_ONFAULT : :: c_int = 4 ;
@@ -365,24 +318,6 @@ pub const BSDLY: ::tcflag_t = 8192;
365318pub const FFDLY : :: tcflag_t = 32768 ;
366319pub const VTDLY : :: tcflag_t = 16384 ;
367320pub const XTABS : :: tcflag_t = 6144 ;
368- pub const B0 : :: speed_t = 0 ;
369- pub const B50 : :: speed_t = 1 ;
370- pub const B75 : :: speed_t = 2 ;
371- pub const B110 : :: speed_t = 3 ;
372- pub const B134 : :: speed_t = 4 ;
373- pub const B150 : :: speed_t = 5 ;
374- pub const B200 : :: speed_t = 6 ;
375- pub const B300 : :: speed_t = 7 ;
376- pub const B600 : :: speed_t = 8 ;
377- pub const B1200 : :: speed_t = 9 ;
378- pub const B1800 : :: speed_t = 10 ;
379- pub const B2400 : :: speed_t = 11 ;
380- pub const B4800 : :: speed_t = 12 ;
381- pub const B9600 : :: speed_t = 13 ;
382- pub const B19200 : :: speed_t = 14 ;
383- pub const B38400 : :: speed_t = 15 ;
384- pub const EXTA : :: speed_t = 14 ;
385- pub const EXTB : :: speed_t = 15 ;
386321pub const B57600 : :: speed_t = 4097 ;
387322pub const B115200 : :: speed_t = 4098 ;
388323pub const B230400 : :: speed_t = 4099 ;
@@ -405,27 +340,6 @@ pub const IEXTEN: ::tcflag_t = 32768;
405340pub const TOSTOP : :: tcflag_t = 256 ;
406341pub const FLUSHO : :: tcflag_t = 4096 ;
407342pub const EXTPROC : :: tcflag_t = 65536 ;
408- pub const TCGETS : :: c_int = 21505 ;
409- pub const TCSETS : :: c_int = 21506 ;
410- pub const TCSETSW : :: c_int = 21507 ;
411- pub const TCSETSF : :: c_int = 21508 ;
412- pub const TCGETA : :: c_int = 21509 ;
413- pub const TCSETA : :: c_int = 21510 ;
414- pub const TCSETAW : :: c_int = 21511 ;
415- pub const TCSETAF : :: c_int = 21512 ;
416- pub const TCSBRK : :: c_int = 21513 ;
417- pub const TCXONC : :: c_int = 21514 ;
418- pub const TCFLSH : :: c_int = 21515 ;
419- pub const TIOCINQ : :: c_int = 21531 ;
420- pub const TIOCGPGRP : :: c_int = 21519 ;
421- pub const TIOCSPGRP : :: c_int = 21520 ;
422- pub const TIOCOUTQ : :: c_int = 21521 ;
423- pub const TIOCGWINSZ : :: c_int = 21523 ;
424- pub const TIOCSWINSZ : :: c_int = 21524 ;
425- pub const FIONREAD : :: c_int = 21531 ;
426- pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
427- pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56 ;
428- pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32 ;
429343
430344pub const SYS_read : :: c_long = 63 ;
431345pub const SYS_write : :: c_long = 64 ;
0 commit comments