aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorKenta Iwasaki <kenta@lithdew.net>2021-05-31 19:29:17 +0900
committerKenta Iwasaki <kenta@lithdew.net>2021-06-01 18:24:43 +0900
commitaad8491dbd98052e97b395ea572b186482d3b38f (patch)
treec58fd0921a6082a39f388b46d36c543d191974cf /lib/std/math.zig
parent6950e4c2943d7eee1868aff1bf9e24f6bb310f60 (diff)
downloadzig-aad8491dbd98052e97b395ea572b186482d3b38f.tar.gz
zig-aad8491dbd98052e97b395ea572b186482d3b38f.zip
os: make msghdr, msghdr_const, and sockaddr_storage backwards-compatible
`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.
Diffstat (limited to 'lib/std/math.zig')
0 files changed, 0 insertions, 0 deletions