about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-09 17:27:35 +0000
committerbors <bors@rust-lang.org>2020-12-09 17:27:35 +0000
commitc16d52db7778fba1c8b6c07b06510cfd6c32ae4f (patch)
tree6e9169604a2d082aa815aa5b07a45e28688d5c34 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentfa55f668e5ea5388ec98b9340969527252239151 (diff)
parent3d8329f6fc678024fc74754f4e483d6a83fee098 (diff)
downloadrust-c16d52db7778fba1c8b6c07b06510cfd6c32ae4f.tar.gz
rust-c16d52db7778fba1c8b6c07b06510cfd6c32ae4f.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions