authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-16 21:21:21+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-22 22:15:32+02:00
log3ffcdb9c3d0e84b3c9d2fa115f3db5d6c988c66c
treef718e878d917f1fcfb9fad2c7e93d5837162b0c4
parent3b8f1e655357523f50752296093e56da53ca287f
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: fix MINSIGSTKSZ and SIGSTKSZ constants for openbsd


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/c.zig+2-2
...@@ -9812,7 +9812,7 @@ pub const MINSIGSTKSZ = switch (native_os) {...@@ -9812,7 +9812,7 @@ pub const MINSIGSTKSZ = switch (native_os) {
9812 },9812 },
9813 .illumos => 2048,9813 .illumos => 2048,
9814 .haiku, .netbsd => 8192,9814 .haiku, .netbsd => 8192,
9815 .openbsd => 1 << openbsd.MAX_PAGE_SHIFT,9815 .openbsd => 3 << openbsd.MAX_PAGE_SHIFT,
9816 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L589816 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L58
9817 .serenity => 4096,9817 .serenity => 4096,
9818 else => {},9818 else => {},
...@@ -9822,7 +9822,7 @@ pub const SIGSTKSZ = switch (native_os) {...@@ -9822,7 +9822,7 @@ pub const SIGSTKSZ = switch (native_os) {
9822 .netbsd, .freebsd => MINSIGSTKSZ + 32768,9822 .netbsd, .freebsd => MINSIGSTKSZ + 32768,
9823 .illumos => 8192,9823 .illumos => 8192,
9824 .haiku => 16384,9824 .haiku => 16384,
9825 .openbsd => MINSIGSTKSZ + (1 << openbsd.MAX_PAGE_SHIFT) * 4,9825 .openbsd => MINSIGSTKSZ + (1 << openbsd.MAX_PAGE_SHIFT) * (if (openbsd.MAX_PAGE_SHIFT < 14) 4 else 2),
9826 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L599826 // https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L59
9827 .serenity => 32768,9827 .serenity => 32768,
9828 else => {},9828 else => {},