summaryrefslogtreecommitdiff
path: root/src/sys/event.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-31 20:36:17 +0000
committerGitHub <noreply@github.com>2021-12-31 20:36:17 +0000
commitb5a23c775c881b8dc5a621b2ba6c960a7498ed62 (patch)
treeae86559980315e21f887453a4274f43d5d41480d /src/sys/event.rs
parentb9eb19778a58603aae232bc838a8b8d8afd87c56 (diff)
parentf7b62f607cb336a24153c8f46d837681e49197e8 (diff)
downloadnix-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/event.rs')
0 files changed, 0 insertions, 0 deletions