Files
rust/library/std/src
bors c16d52db77 Auto merge of #79387 - woodruffw-forks:ww/peer-cred-pid-macos, r=Amanieu
ext/ucred: Support PID in peer creds on macOS

This is a follow-up to https://github.com/rust-lang/rust/pull/75148 (RFC: https://github.com/rust-lang/rust/issues/42839).

The original PR used `getpeereid` on macOS and the BSDs, since they don't (generally) support the `SO_PEERCRED` mechanism that Linux supplies.

This PR splits the macOS/iOS implementation of `peer_cred()` from that of the BSDs, since macOS supplies the `LOCAL_PEERPID` sockopt as a source of the missing PID. It also adds a `cfg`-gated tests that ensures that platforms with support for PIDs in `UCred` have the expected data.
2020-12-09 17:27:35 +00:00
..
2020-11-19 19:23:36 -05:00
2020-11-26 23:15:32 +09:00
2020-09-02 17:38:21 -04:00
2020-11-07 12:50:57 -08:00
2020-11-22 17:11:41 -05:00
2020-10-21 20:44:03 -07:00
2020-09-02 17:37:40 -04:00
2020-09-04 14:00:09 -07:00
2020-11-22 17:11:41 -05:00
2020-09-12 14:00:38 +02:00
2020-10-26 07:15:37 +09:00
2020-10-27 20:54:30 -07:00
2020-11-22 17:11:41 -05:00