|
63 | 63 | } |
64 | 64 |
|
65 | 65 | pub struct sigaction { |
66 | | - pub sa_flags: ::c_uint, |
| 66 | + pub sa_flags: ::c_int, |
67 | 67 | pub sa_sigaction: ::sighandler_t, |
68 | 68 | pub sa_mask: sigset_t, |
69 | 69 | _restorer: *mut ::c_void, |
@@ -190,18 +190,18 @@ pub const RLIMIT_AS: ::c_int = 6; |
190 | 190 | pub const RLIMIT_RSS: ::c_int = 7; |
191 | 191 | pub const RLIMIT_NPROC: ::c_int = 8; |
192 | 192 | pub const RLIMIT_MEMLOCK: ::c_int = 9; |
193 | | -pub const RLIMIT_NLIMITS: ::c_int = 15; |
| 193 | +pub const RLIMIT_NLIMITS: ::c_int = 16; |
194 | 194 | pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff; |
195 | 195 |
|
196 | 196 | pub const O_APPEND: ::c_int = 8; |
197 | 197 | pub const O_CREAT: ::c_int = 256; |
198 | 198 | pub const O_EXCL: ::c_int = 1024; |
199 | 199 | pub const O_NOCTTY: ::c_int = 2048; |
200 | 200 | pub const O_NONBLOCK: ::c_int = 128; |
201 | | -pub const O_SYNC: ::c_int = 0x10; |
202 | | -pub const O_RSYNC: ::c_int = 0x10; |
| 201 | +pub const O_SYNC: ::c_int = 0x4010; |
| 202 | +pub const O_RSYNC: ::c_int = 0x4010; |
203 | 203 | pub const O_DSYNC: ::c_int = 0x10; |
204 | | -pub const O_FSYNC: ::c_int = 0x10; |
| 204 | +pub const O_FSYNC: ::c_int = 0x4010; |
205 | 205 | pub const O_ASYNC: ::c_int = 0x1000; |
206 | 206 | pub const O_NDELAY: ::c_int = 0x80; |
207 | 207 |
|
@@ -357,6 +357,7 @@ pub const SIG_UNBLOCK: ::c_int = 0x2; |
357 | 357 | pub const PTHREAD_STACK_MIN: ::size_t = 131072; |
358 | 358 |
|
359 | 359 | pub const MS_VERBOSE: ::c_ulong = 0x8000; |
| 360 | +pub const MS_RMT_MASK: ::c_ulong = 0x2800051; |
360 | 361 |
|
361 | 362 | pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5; |
362 | 363 | pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff; |
@@ -454,7 +455,7 @@ extern { |
454 | 455 | hostlen: ::socklen_t, |
455 | 456 | serv: *mut ::c_char, |
456 | 457 | sevlen: ::socklen_t, |
457 | | - flags: ::c_uint) -> ::c_int; |
458 | | - pub fn eventfd(init: ::c_int, flags: ::c_int) -> ::c_int; |
| 458 | + flags: ::c_int) -> ::c_int; |
| 459 | + pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int; |
459 | 460 | pub fn ptrace(request: ::c_uint, ...) -> ::c_long; |
460 | 461 | } |
0 commit comments