| ... | ... | @@ -827,15 +827,17 @@ else |
| 827 | 827 | |
| 828 | 828 | /// Renamed from `sigaction` to `Sigaction` to avoid conflict with the syscall. |
| 829 | 829 | pub const Sigaction = extern struct { |
| 830 | | sigaction: ?extern fn (i32, *siginfo_t, *c_void) void, |
| 830 | pub const sigaction_fn = fn (i32, *siginfo_t, ?*c_void) callconv(.C) void; |
| 831 | sigaction: ?sigaction_fn, |
| 831 | 832 | mask: sigset_t, |
| 832 | 833 | flags: u32, |
| 833 | 834 | restorer: ?extern fn () void = null, |
| 834 | 835 | }; |
| 835 | 836 | |
| 836 | | pub const SIG_ERR = @intToPtr(extern fn (i32, *siginfo_t, *c_void) void, maxInt(usize)); |
| 837 | | pub const SIG_DFL = @intToPtr(?extern fn (i32, *siginfo_t, *c_void) void, 0); |
| 838 | | pub const SIG_IGN = @intToPtr(extern fn (i32, *siginfo_t, *c_void) void, 1); |
| 837 | pub const SIG_ERR = @intToPtr(?Sigaction.sigaction_fn, maxInt(usize)); |
| 838 | pub const SIG_DFL = @intToPtr(?Sigaction.sigaction_fn, 0); |
| 839 | pub const SIG_IGN = @intToPtr(?Sigaction.sigaction_fn, 1); |
| 840 | |
| 839 | 841 | pub const empty_sigset = [_]u32{0} ** sigset_t.len; |
| 840 | 842 | |
| 841 | 843 | pub const in_port_t = u16; |