| ... | @@ -1112,8 +1112,8 @@ pub fn sigaction(sig: u6, noalias act: *const Sigaction, noalias oact: ?*Sigacti | ... | @@ -1112,8 +1112,8 @@ pub fn sigaction(sig: u6, noalias act: *const Sigaction, noalias oact: ?*Sigacti |
| 1112 | | 1112 | |
| 1113 | const NSIG = 65; | 1113 | const NSIG = 65; |
| 1114 | const sigset_t = [128 / @sizeOf(usize)]usize; | 1114 | const sigset_t = [128 / @sizeOf(usize)]usize; |
| 1115 | const all_mask = []u32{0xffffffff, 0xffffffff}; | 1115 | const all_mask = []u32{ 0xffffffff, 0xffffffff }; |
| 1116 | const app_mask = []u32{0xfffffffc, 0x7fffffff}; | 1116 | const app_mask = []u32{ 0xfffffffc, 0x7fffffff }; |
| 1117 | | 1117 | |
| 1118 | const k_sigaction = extern struct { | 1118 | const k_sigaction = extern struct { |
| 1119 | handler: extern fn (i32) void, | 1119 | handler: extern fn (i32) void, |
| ... | @@ -1411,9 +1411,15 @@ pub const epoll_data = extern union { | ... | @@ -1411,9 +1411,15 @@ pub const epoll_data = extern union { |
| 1411 | // On x86_64 the structure is packed so that it matches the definition of its | 1411 | // On x86_64 the structure is packed so that it matches the definition of its |
| 1412 | // 32bit counterpart | 1412 | // 32bit counterpart |
| 1413 | pub const epoll_event = if (builtin.arch != .x86_64) | 1413 | pub const epoll_event = if (builtin.arch != .x86_64) |
| 1414 | extern struct { events: u32, data: epoll_data } | 1414 | extern struct { |
| 1415 | else | 1415 | events: u32, |
| 1416 | packed struct { events: u32, data: epoll_data }; | 1416 | data: epoll_data, |
| | 1417 | } |
| | 1418 | else |
| | 1419 | packed struct { |
| | 1420 | events: u32, |
| | 1421 | data: epoll_data, |
| | 1422 | }; |
| 1417 | | 1423 | |
| 1418 | pub fn epoll_create() usize { | 1424 | pub fn epoll_create() usize { |
| 1419 | return epoll_create1(0); | 1425 | return epoll_create1(0); |