<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix/ext/net, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2021-05-03T14:56:21+00:00</updated>
<entry>
<title>Move `std::sys::unix::ext` to `std::os::unix`</title>
<updated>2021-05-03T14:56:21+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-03-04T14:26:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a808fd44a331912b1fef05d2bfdce69809857133'/>
<id>urn:sha1:a808fd44a331912b1fef05d2bfdce69809857133</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change 'NULL' to 'null'</title>
<updated>2021-05-02T23:46:00+00:00</updated>
<author>
<name>Brent Kerby</name>
<email>blkerby@gmail.com</email>
</author>
<published>2021-05-02T21:55:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6679f5ceb1bd367050bb69b239d94d6213696336'/>
<id>urn:sha1:6679f5ceb1bd367050bb69b239d94d6213696336</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inline most raw socket, fd and handle conversions</title>
<updated>2021-04-25T06:39:09+00:00</updated>
<author>
<name>KaiJewson</name>
<email>kai.jewson@gmail.com</email>
</author>
<published>2021-04-25T06:39:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fbc2aadbfc6a54da9d8cc5929287d2bcc55c545e'/>
<id>urn:sha1:fbc2aadbfc6a54da9d8cc5929287d2bcc55c545e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #83374 - reyk:fix/bsd-ancillary, r=joshtriplett</title>
<updated>2021-03-29T22:32:21+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-29T22:32:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=772582e19ef366e4be686bfcfd65667dc033fe3a'/>
<id>urn:sha1:772582e19ef366e4be686bfcfd65667dc033fe3a</id>
<content type='text'>
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 possibly 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 makes the check non-optional which fixes CMSG handling and a possible endless loop on such systems; tested with file descriptor passing on OpenBSD, Linux, and macOS.

This MR additionally adds `SocketAncillary::is_empty` because clippy is right that it should be added.

This belongs to the `feature(unix_socket_ancillary_data)` tracking issue:  https://github.com/rust-lang/rust/issues/76915

r? `@joshtriplett`
</content>
</entry>
<entry>
<title>unix: Fix feature(unix_socket_ancillary_data) on macos and other BSDs</title>
<updated>2021-03-26T20:12:22+00:00</updated>
<author>
<name>Reyk Floeter</name>
<email>contact@reykfloeter.com</email>
</author>
<published>2021-03-22T11:07:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3d6bd87b24a2fbccb6c1e81863874789eb046c17'/>
<id>urn:sha1:3d6bd87b24a2fbccb6c1e81863874789eb046c17</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Use iter::zip in library/</title>
<updated>2021-03-26T16:32:29+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2021-03-08T23:32:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3b1f5e34620d6bfa32a127258e2c2d9f2f4d693b'/>
<id>urn:sha1:3b1f5e34620d6bfa32a127258e2c2d9f2f4d693b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use io::Error::new_const everywhere to avoid allocations.</title>
<updated>2021-03-21T19:22:38+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2021-03-21T19:22:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7b71719faf5ba6a230d097fddb288f79ccc570f1'/>
<id>urn:sha1:7b71719faf5ba6a230d097fddb288f79ccc570f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix: Non-mutable bufs in send_vectored_with_ancillary_to</title>
<updated>2021-02-28T12:33:09+00:00</updated>
<author>
<name>LinkTed</name>
<email>link.ted@mailbox.org</email>
</author>
<published>2021-02-27T13:07:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e4e739209e77274b574cfc8cd80c956fb08bfa4'/>
<id>urn:sha1:9e4e739209e77274b574cfc8cd80c956fb08bfa4</id>
<content type='text'>
Change the arguments of `send_vectored_with_ancillary` and
`send_vectored_with_ancillary_to` to take an non-mutable bufs.
</content>
</entry>
<entry>
<title>Fix failing build of std on armv5te-unknown-linux-uclibceabi due to missing cmsg_len_zero</title>
<updated>2020-12-16T19:34:21+00:00</updated>
<author>
<name>Ondrej Perutka</name>
<email>perutka.ondrej@gmail.com</email>
</author>
<published>2020-12-16T19:34:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ec078155f140de8bd838596ac0d5d786d988d493'/>
<id>urn:sha1:ec078155f140de8bd838596ac0d5d786d988d493</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add comment for the previous android bug fix</title>
<updated>2020-11-26T17:54:13+00:00</updated>
<author>
<name>LinkTed</name>
<email>link.ted@mailbox.org</email>
</author>
<published>2020-11-26T17:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8983752c12c65e598dff704502ad1b0334d1daaa'/>
<id>urn:sha1:8983752c12c65e598dff704502ad1b0334d1daaa</id>
<content type='text'>
</content>
</entry>
</feed>
