zig/lib/std/os
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
..
linux Update Linux syscall list for 5.19 2022-08-05 15:36:32 +03:00
plan9
uefi std.os.uefi: Add BlockIoProtocol 2022-04-19 19:51:19 -04:00
windows add const to msghdr_const iov and control pointers 2022-06-07 15:23:44 -04:00
darwin.zig macos: update Mach routines for accessing page info 2022-03-17 10:42:11 +01:00
linux.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
plan9.zig remove 'builtin.stage2_arch', Sema is smart enough now 2022-08-07 16:07:08 -07:00
posix_spawn.zig std: introduce posix_spawn as an alt to fork-exec 2022-03-16 19:40:44 +01:00
test.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
uefi.zig std.os.uefi: fix GUID formatting (#11452) 2022-04-17 06:15:15 -04:00
wasi.zig stdlib: Add emulated CWD to std.os for WASI targets 2022-03-03 14:31:49 -07:00
windows.zig math: make cast return optional instead of an error 2022-05-27 16:43:33 -04:00