diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-21 17:45:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 17:45:29 +0000 |
commit | 79f04fb3a34a4af6d8bdcc5807d63a980f483f94 (patch) | |
tree | b6cb3d43dd747048fe9cc842fb8af3f2e5c92656 /src/sys/time.rs | |
parent | 9ea1493a813bf49a493a4528640f036b9dbcc7d8 (diff) | |
parent | f6a22198a48b138f43abeb186ebe9f4ebb1af415 (diff) | |
download | nix-79f04fb3a34a4af6d8bdcc5807d63a980f483f94.zip |
Merge #1857
1857: Add better support for unnamed unix socket addrs r=asomers a=stevenengler
This adds the following 2 functions/methods: `UnixAddr::new_unnamed` and `UnixAddr::is_unnamed`.
Closes #1585
unix(7) on Linux:
> unnamed: A stream socket that has not been bound to a pathname using bind(2) has no name. Likewise, the two sockets created by socketpair(2) are unnamed. When the address of an unnamed socket is returned, its length is `sizeof(sa_family_t)`, and `sun_path` should not be inspected.
**Edit:** This currently isn't working on BSD, but I see why. Will fix it shortly.
Co-authored-by: Steven Engler <opara@cs.georgetown.edu>
Diffstat (limited to 'src/sys/time.rs')
0 files changed, 0 insertions, 0 deletions