about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorReyk Floeter <contact@reykfloeter.com>2021-03-22 12:07:44 +0100
committerReyk Floeter <contact@reykfloeter.com>2021-03-26 21:12:22 +0100
commit3d6bd87b24a2fbccb6c1e81863874789eb046c17 (patch)
treece9973fad8cb080a769624d50e68186cb34c22cd /src/test/debuginfo/enum-thinlto.rs
parentb8719c51e0e44483cff9b6975a830f6e51812a48 (diff)
downloadrust-3d6bd87b24a2fbccb6c1e81863874789eb046c17.tar.gz
rust-3d6bd87b24a2fbccb6c1e81863874789eb046c17.zip
unix: Fix feature(unix_socket_ancillary_data) on macos and other BSDs
This adds support for CMSG handling on macOS and fixes it on OpenBSD
and other BSDs.

When traversing the CMSG list, the previous code had an exception for
Android where the next element after the last pointer could point to
the first pointer instead of NULL.  This is actually not specific to
Android: the `libc::CMSG_NXTHDR` implementation for Linux and
emscripten have a special case to return NULL when the length of the
previous element is zero; most other implementations simply return the
previous element plus a zero offset in this case.

This MR additionally adds `SocketAncillary::is_empty` because clippy
is right that it should be added.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions