authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-10-03 22:15:38+01:00
committergravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-10-03 22:15:38+01:00
log701a6f394cd96074a3258fc5545e7b278c13ef97
tree13e9246322b56e9d3c7f2dc87450d155f0e59101
parent07c3f9ef8e0a5a557dce70322334b0d1b49fe154

std.c: Add missing SIG constants for serenity


1 files changed, 9 insertions(+), 0 deletions(-)

lib/std/c.zig+9
......@@ -3140,8 +3140,17 @@ pub const SIG = switch (native_os) {
31403140 pub const UNBLOCK = 2;
31413141 pub const SETMASK = 3;
31423142 },
3143 // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal.h
31433144 // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal_numbers.h
31443145 .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
31453154 pub const INVAL = 0;
31463155 pub const HUP = 1;
31473156 pub const INT = 2;