<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/sys/unix/ext, 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>Add std::os::unix::fs::chroot to change the root directory of the current process</title>
<updated>2021-04-30T07:11:03+00:00</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2021-04-29T20:47:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ffb874ac90947c6ffa87af0e80b362bf84442d76'/>
<id>urn:sha1:ffb874ac90947c6ffa87af0e80b362bf84442d76</id>
<content type='text'>
This is a straightforward wrapper that uses the existing helpers for C
string handling and errno handling.

Having this available is convenient for UNIX utility programs written in
Rust, and avoids having to call the unsafe `libc::chroot` directly and
handle errors manually, in a program that may otherwise be entirely safe
code.
</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>Move `sys::vxworks` code to `sys::unix`</title>
<updated>2021-04-19T11:29:22+00:00</updated>
<author>
<name>Christiaan Dirkx</name>
<email>christiaan@dirkx.email</email>
</author>
<published>2021-04-12T03:58:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=12120409d56ecfb5bd8ddd06bfecd0443b043834'/>
<id>urn:sha1:12120409d56ecfb5bd8ddd06bfecd0443b043834</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>Rollup merge of #83463 - ijackson:exitstatusext-doc-grammar, r=kennytm</title>
<updated>2021-03-26T01:34:42+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2021-03-26T01:34:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=85d08e9afe67cb21a7ce9a7904591988d42a30ac'/>
<id>urn:sha1:85d08e9afe67cb21a7ce9a7904591988d42a30ac</id>
<content type='text'>
ExitStatusExt: Fix missing word in two docs messages

Looks like I missed the lack of these "and"s.
</content>
</entry>
<entry>
<title>ExitStatusExt: Fix missing word in two docs messages</title>
<updated>2021-03-25T10:48:27+00:00</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2021-03-25T10:48:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=88ca6c22193514246538be52be01015dcb530aa5'/>
<id>urn:sha1:88ca6c22193514246538be52be01015dcb530aa5</id>
<content type='text'>
Looks like I missed the lack of these "and"s.

Acked-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
</feed>
