zig/lib/std/os
Andrew Kelley 062d17ccab std: fix msghdr and cmsghdr when using musl libc
glibc and linux kernel use size_t for some field lengths while POSIX and
musl use int. This bug would have caused breakage the first time someone
tried to call sendmsg on a 64-bit big endian system when linking musl
libc.

my opinion:
* msghdr.iovlen: kernel and glibc have it right. This field should
  definitely be size_t. With int, the padding bytes are wasted for no
  reason.
* msghdr.controllen: POSIX and musl have it right. 4 bytes is plenty for
  the length, and it saves 4 bytes next to flags.
* cmsghdr.len: POSIX and musl have it right. 4 bytes is plenty for the
  length, and it saves 4 bytes since the other fields are also 32-bits
  each.
2025-10-02 16:30:59 -07:00
..
linux std: rework/remove ucontext_t 2025-09-30 13:44:54 +01:00
plan9 zig fmt 2025-07-16 10:27:39 -07:00
uefi std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
windows update format strings in os/windows/test.zig 2025-07-08 08:46:31 -07:00
emscripten.zig sigset_t: sigemptyset() and sigfillset() are functions that return sigset_t 2025-04-30 20:32:04 -07:00
freebsd.zig std: rework/remove ucontext_t 2025-09-30 13:44:54 +01:00
linux.zig std: fix msghdr and cmsghdr when using musl libc 2025-10-02 16:30:59 -07:00
plan9.zig sigset_t: sigemptyset() and sigfillset() are functions that return sigset_t 2025-04-30 20:32:04 -07:00
uefi.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
wasi.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
windows.zig replace usages of old std.debug APIs 2025-09-30 13:44:51 +01:00