diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-31 20:36:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 20:36:17 +0000 |
commit | b5a23c775c881b8dc5a621b2ba6c960a7498ed62 (patch) | |
tree | ae86559980315e21f887453a4274f43d5d41480d /src/sys/memfd.rs | |
parent | b9eb19778a58603aae232bc838a8b8d8afd87c56 (diff) | |
parent | f7b62f607cb336a24153c8f46d837681e49197e8 (diff) | |
download | nix-b5a23c775c881b8dc5a621b2ba6c960a7498ed62.zip |
Merge #1618
1618: Refactor UnixAddr r=asomers a=asomers
* Within UnixAddr, replace the path_len variable (length of the sun_path
field) with sun_len (length of the whole structure). This is more
similar to how other sockaddr types work, and it's the same way that the
BSDs use the sun_len field.
Also, don't require that sun_path be nul-terminated. The OS doesn't
require it.
* On BSD-derived operating systems, struct sockaddr has a sa_len field
that holds the length of the structure. UnixAddr's path_len field is
redundant. Remove path_len on BSD-derived OSes, retaining it only for
Illumos and Linux-based OSes.
Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'src/sys/memfd.rs')
0 files changed, 0 insertions, 0 deletions