aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-08-11 10:56:21 +0200
committerIsaac Freund <mail@isaacfreund.com>2022-08-11 12:09:34 +0200
commitb78f3bf1f17c7d67ae30d95047e40efc164bf8af (patch)
treeb88d1278766ff64c7ca43b2ecb2cc295de747516 /src
parent7d6a7f513b0053be4e1629de492cbde9215c442c (diff)
downloadzig-b78f3bf1f17c7d67ae30d95047e40efc164bf8af.tar.gz
zig-b78f3bf1f17c7d67ae30d95047e40efc164bf8af.zip
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.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions