@@ -11,10 +11,6 @@ pub type __u64 = ::c_ulonglong;
1111pub type __s64 = :: c_longlong ;
1212
1313s ! {
14- pub struct pthread_attr_t {
15- __size: [ :: c_ulong; 7 ] ,
16- }
17-
1814 pub struct stat {
1915 pub st_dev: :: dev_t,
2016 pub st_ino: :: ino_t,
5955 __unused: [ :: c_int; 2 ] ,
6056 }
6157
62- pub struct statfs {
63- pub f_type: :: c_long,
64- pub f_bsize: :: c_long,
65- pub f_blocks: :: fsblkcnt_t,
66- pub f_bfree: :: fsblkcnt_t,
67- pub f_bavail: :: fsblkcnt_t,
68- pub f_files: :: fsfilcnt_t,
69- pub f_ffree: :: fsfilcnt_t,
70- pub f_fsid: :: fsid_t,
71- pub f_namelen: :: c_long,
72- pub f_frsize: :: c_long,
73- pub f_flags: :: c_long,
74- pub f_spare: [ :: c_long; 4 ] ,
75- }
76-
7758 pub struct statfs64 {
7859 pub f_type: :: c_long,
7960 pub f_bsize: :: c_long,
9677 pub cuid: :: uid_t,
9778 pub cgid: :: gid_t,
9879 pub mode: :: c_uint,
99- pub __seq: :: c_ushort ,
80+ pub __seq: :: c_int ,
10081 __pad2: :: c_ushort,
10182 __unused1: :: c_ulong,
10283 __unused2: :: c_ulong,
@@ -126,10 +107,10 @@ s! {
126107
127108 #[ repr( align( 16 ) ) ]
128109 pub struct mcontext_t {
129- pub __pc: :: c_ulonglong ,
130- pub __gregs: [ :: c_ulonglong ; 32 ] ,
110+ pub __pc: :: c_ulong ,
111+ pub __gregs: [ :: c_ulong ; 32 ] ,
131112 pub __flags: :: c_uint,
132- pub __extcontext: [ :: c_ulonglong ; 0 ] ,
113+ pub __extcontext: [ :: c_ulong ; 0 ] ,
133114 }
134115
135116 #[ repr( align( 8 ) ) ]
@@ -467,7 +448,7 @@ pub const SYS_futex_requeue: ::c_long = 456;
467448pub const O_APPEND : :: c_int = 1024 ;
468449pub const O_DIRECT : :: c_int = 0x4000 ;
469450pub const O_DIRECTORY : :: c_int = 0x10000 ;
470- pub const O_LARGEFILE : :: c_int = 0 ;
451+ pub const O_LARGEFILE : :: c_int = 0o0100000 ;
471452pub const O_NOFOLLOW : :: c_int = 0x20000 ;
472453pub const O_CREAT : :: c_int = 64 ;
473454pub const O_EXCL : :: c_int = 128 ;
@@ -476,7 +457,7 @@ pub const O_NONBLOCK: ::c_int = 2048;
476457pub const O_SYNC : :: c_int = 1052672 ;
477458pub const O_RSYNC : :: c_int = 1052672 ;
478459pub const O_DSYNC : :: c_int = 4096 ;
479- pub const O_ASYNC : :: c_int = 4096 ;
460+ pub const O_ASYNC : :: c_int = 0o20000 ;
480461
481462pub const SIGSTKSZ : :: size_t = 16384 ;
482463pub const MINSIGSTKSZ : :: size_t = 4096 ;
@@ -660,6 +641,7 @@ pub const ECHOPRT: ::tcflag_t = 0x00000400;
660641pub const ECHOCTL : :: tcflag_t = 0x00000200 ;
661642pub const ISIG : :: tcflag_t = 0x00000001 ;
662643pub const ICANON : :: tcflag_t = 0x00000002 ;
644+ pub const XCASE : :: tcflag_t = 0x00000004 ;
663645pub const PENDIN : :: tcflag_t = 0x00004000 ;
664646pub const NOFLSH : :: tcflag_t = 0x00000080 ;
665647pub const CIBAUD : :: tcflag_t = 0o02003600000 ;
0 commit comments