authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-10-03 22:15:38+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-10-06 23:29:11+02:00
log08b2fd46ab79e1f381e360c01a4f66abff8cb4b7
treefa039278f99a7340d6eb3460be383d4b40a1deab
parentbc7cdc2b6b08070e1983d6c38744d74c9dddf5da
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: Add missing SIG constants for serenity


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

lib/std/c.zig+9
......@@ -3121,8 +3121,17 @@ pub const SIG = switch (native_os) {
31213121 pub const UNBLOCK = 2;
31223122 pub const SETMASK = 3;
31233123 },
3124 // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal.h
31243125 // https://github.com/SerenityOS/serenity/blob/046c23f567a17758d762a33bdf04bacbfd088f9f/Kernel/API/POSIX/signal_numbers.h
31253126 .serenity => struct {
3127 pub const DFL: ?Sigaction.handler_fn = @ptrFromInt(0);
3128 pub const ERR: ?Sigaction.handler_fn = @ptrFromInt(maxInt(usize));
3129 pub const IGN: ?Sigaction.handler_fn = @ptrFromInt(1);
3130
3131 pub const BLOCK = 1;
3132 pub const UNBLOCK = 2;
3133 pub const SETMASK = 3;
3134
31263135 pub const INVAL = 0;
31273136 pub const HUP = 1;
31283137 pub const INT = 2;