zig/lib/std/c
Isaac Freund b78f3bf1f1
std: fix definition of SIG_IGN, SIG_DFL, etc.
POSIX specifies that the sa_handler field of the sigaction struct may
be set to SIG_IGN or SIG_DFL. However, the current constants in the
standard library use the function pointer signature corresponding to
the sa_sigaction field instead.

This may not cause issues in practice because the fields usually occupy
the same memory in a union, but this isn't required by POSIX and there
may be systems we do not yet support that do this differently.

Fixing this also makes the Zig interface less confusing to use after
reading the man page.
2022-08-11 12:09:34 +02:00
..
darwin macos: add more mach primitives 2022-03-13 09:42:24 +01:00
darwin.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
dragonfly.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
emscripten.zig
freebsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
fuchsia.zig
haiku.zig Sema: allow void as an extern union field & fix invalid extern unions 2022-07-11 20:30:16 +03:00
hermit.zig std: reorganization that allows new usingnamespace semantics 2021-09-01 17:54:06 -07:00
linux.zig Merge pull request #11598 from aiotter/master 2022-05-26 20:11:54 -04:00
minix.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
netbsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
openbsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
solaris.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
tokenizer.zig stage2: fix bugs preventing stage2 from building stage3 with LLVM 2022-04-15 23:32:26 +03:00
wasi.zig stdlib: Add emulated CWD to std.os for WASI targets 2022-03-03 14:31:49 -07:00
windows.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00