diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-12-20 14:00:36 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2017-12-20 14:00:36 +0000 |
commit | 5d50acaa806b0b0cc6c04d26232fc6a6f10d18a3 (patch) | |
tree | 9c48935a7f7e29860ce3e05a9c11566386fb0108 /test/sys | |
parent | b68db41543d16d862e07ddbd143f43b92533d60b (diff) | |
parent | 19ef148dd2e754ee4daa64d7853ee4341ead67ca (diff) | |
download | nix-5d50acaa806b0b0cc6c04d26232fc6a6f10d18a3.zip |
Merge #648
648: Fix `struct msghdr` types on non-Linux platforms. r=Susurrus a=kinetiknz
Type `struct msghdr` and `struct cmsghdr` types defined in `sys/socket/ffi.rs` match the Linux headers, but differ from the standard header (and other OSes): http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
This PR fixes a memory corruption/unsafety issue on non-Linux machines when using `recvmsg` with certain parameters.
While fixing this, I wondered what the reason was for nix not using libc's definition of these structures.
Closes #748.
Diffstat (limited to 'test/sys')
0 files changed, 0 insertions, 0 deletions