<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/os/net/linux_ext/socket.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-05-15T01:26:06+00:00</updated>
<entry>
<title>Update std doctests for android</title>
<updated>2025-05-15T01:26:06+00:00</updated>
<author>
<name>Eric Huss</name>
<email>eric@huss.org</email>
</author>
<published>2025-05-15T01:26:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57af157ce28b21b1b049346df62da72d5ee150fc'/>
<id>urn:sha1:57af157ce28b21b1b049346df62da72d5ee150fc</id>
<content type='text'>
This updates some doctests that fail to run on android. We will soon be
supporting cross-compiled doctests, and the `arm-android` job fails to
run these tests.

In summary:
- Android re-exports some traits from linux under a different path.
- Android doesn't seem to have common unix utilities like `true`,
  `false`, or `whoami`, so these are disabled.
</content>
</entry>
<entry>
<title>Convert `Unix{Datagram,Stream}::{set_}passcred()` to per-OS traits</title>
<updated>2023-10-25T08:01:21+00:00</updated>
<author>
<name>John Millikin</name>
<email>john@john-millikin.com</email>
</author>
<published>2023-10-25T08:01:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93f2f2c8ee44a8cb469fd7e656599c2b9546a1af'/>
<id>urn:sha1:93f2f2c8ee44a8cb469fd7e656599c2b9546a1af</id>
<content type='text'>
These methods are the pre-stabilized API for obtaining peer credentials
from an `AF_UNIX` socket, part of the `unix_socket_ancillary_data` feature.

Their current behavior is to get/set one of the `SO_PASSCRED` (Linux),
`LOCAL_CREDS_PERSISTENT` (FreeBSD), or `LOCAL_CREDS` (NetBSD) socket
options. On other targets the `{set_}passcred()` methods do not exist.

There are two problems with this approach:

1. Having public methods only exist for certain targets isn't permitted
   in a stable `std` API.

2. These options have generally similar purposes, but they are non-POSIX
   and their details can differ in subtle and surprising ways (such as
   whether they continue to be set after the next call to `recvmsg()`).

Splitting into OS-specific extension traits is the preferred solution to
both problems.
</content>
</entry>
</feed>
