# std: fix definition of SIG_IGN, SIG_DFL, etc\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b78f3bf1f17c7d67ae30d95047e40efc164bf8af)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b78f3bf1f17c7d67ae30d95047e40efc164bf8af

Requested commit: b78f3bf1f17c7d67ae30d95047e40efc164bf8af

Commit: b78f3bf1f17c7d67ae30d95047e40efc164bf8af

Tree: b88d1278766ff64c7ca43b2ecb2cc295de747516

Author: Isaac Freund

Committer: Isaac Freund

## Message

```
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.

```

## Parents

- [7d6a7f513b0053be4e1629de492cbde9215c442c](https://git.cafe/gitcafe/zig/commit/7d6a7f513b0053be4e1629de492cbde9215c442c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b78f3bf1f17c7d67ae30d95047e40efc164bf8af?format=markdown)
