mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 17:15:37 +00:00
aad8491dbd
`msghdr` and `msghdr_const` definitions have been added back the way they were in std.os. std.os.sendmsg has also been modified to accept a msghdr_const again to ensure backwards-compatibility with this PR. Underneath the hood, std.os.sendmsg will @ptrCast the provided msghdr_const into a std.x.os.Socket.Message. `sockaddr_storage` definitions have been added back the way they were in std.os, except that it now simply aliases std.x.os.Socket.Address.Native.Storage as all of std.x.os.Socket.Address.Native.Storage's fields are equivalent to the fields that were previously defined for std.x.os.bits.sockaddr_storage. std.x.os.Socket.sendMessage now no longer is a stub that aliases std.os.sendmsg, but instead calls and handles errors from std.os.system.sendmsg directly. Addresses feedback to urge backwards compatibility from @andrewrk. |
||
---|---|---|
.. | ||
bits | ||
linux | ||
uefi | ||
windows | ||
bits.zig | ||
darwin.zig | ||
dragonfly.zig | ||
freebsd.zig | ||
haiku.zig | ||
linux.zig | ||
netbsd.zig | ||
openbsd.zig | ||
test.zig | ||
uefi.zig | ||
wasi.zig | ||
windows.zig |