| ... | @@ -3140,8 +3140,17 @@ pub const SIG = switch (native_os) { | ... | @@ -3140,8 +3140,17 @@ pub const SIG = switch (native_os) { |
| 3140 | pub const UNBLOCK = 2; | 3140 | pub const UNBLOCK = 2; |
| 3141 | pub const SETMASK = 3; | 3141 | pub const SETMASK = 3; |
| 3142 | }, | 3142 | }, |
| | 3143 | // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal.h |
| 3143 | // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal_numbers.h | 3144 | // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal_numbers.h |
| 3144 | .serenity => struct { | 3145 | .serenity => struct { |
| | 3146 | pub const DFL: ?Sigaction.handler_fn = @ptrFromInt(0); |
| | 3147 | pub const ERR: ?Sigaction.handler_fn = @ptrFromInt(maxInt(usize)); |
| | 3148 | pub const IGN: ?Sigaction.handler_fn = @ptrFromInt(1); |
| | 3149 | |
| | 3150 | pub const BLOCK = 1; |
| | 3151 | pub const UNBLOCK = 2; |
| | 3152 | pub const SETMASK = 3; |
| | 3153 | |
| 3145 | pub const INVAL = 0; | 3154 | pub const INVAL = 0; |
| 3146 | pub const HUP = 1; | 3155 | pub const HUP = 1; |
| 3147 | pub const INT = 2; | 3156 | pub const INT = 2; |