diff options
| author | Justus Klausecker <justus@klausecker.de> | 2025-08-20 15:56:49 +0200 |
|---|---|---|
| committer | Justus Klausecker <justus@klausecker.de> | 2025-08-20 18:21:32 +0200 |
| commit | 590d264bdf340fa1e6549ce1988f9ccb7418f4d7 (patch) | |
| tree | b9ef97ae19c737d2b883b51fd82919c6a10cd0ea /lib/std/debug/MemoryAccessor.zig | |
| parent | d748cc9c12ba852ac02edf55eb418b06086d211c (diff) | |
| download | zig-590d264bdf340fa1e6549ce1988f9ccb7418f4d7.tar.gz zig-590d264bdf340fa1e6549ce1988f9ccb7418f4d7.zip | |
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)
Diffstat (limited to 'lib/std/debug/MemoryAccessor.zig')
0 files changed, 0 insertions, 0 deletions
