# std.c.darwin: cleanup, expose everything in std.c · gitcafe/zig

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

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

Visibility: public

Requested revision: 590d264bdf340fa1e6549ce1988f9ccb7418f4d7

Requested commit: 590d264bdf340fa1e6549ce1988f9ccb7418f4d7

Commit: 590d264bdf340fa1e6549ce1988f9ccb7418f4d7

Tree: b9ef97ae19c737d2b883b51fd82919c6a10cd0ea

Author: Justus Klausecker

Committer: Justus Klausecker

## Message

```
std.c.darwin: cleanup, expose everything in std.c
This mainly just moves stuff around.
Justifications for other changes:
* `KEVENT.FLAGS` is backed by `c_uint` because that's what the `kevent64` flags param takes (according to the 'latest' manpage from 2008)
* `MACH_RCV_NOTIFY` is a legacy name and `MACH_RCV_OVERWRITE` is deprecated (xnu/osfmk/mach/message.h), so I removed them. They were 0 anyway and thus couldn't be represented
as a packed struct field.
* `MACH.RCV` and `MACH.SEND` are technically the same 'type' because they can both be supplied at the same time to `mach_msg`. I decided to still keep them separate because
naming works out better that way and all flags except for `MACH_MSG_STRICT_REPLY` aren't shared anyway. Both are part of a packed union `mach_msg_option_t` which supplies a
helper function to combine the two types.
* `PT` is backed by `c_int` because that's what `ptrace` takes as a request arg (according to the latest manpage from 2015)

```

## Parents

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

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