rust/library/std/src/os
Rain 50d127e6ec [illumos/solaris] set MSG_NOSIGNAL while writing to sockets
Both these platforms have MSG_NOSIGNAL available, and we should set it for
socket writes in the event that the SIGPIPE handler has been reset to SIG_DFL
(i.e. terminate the process).

I've verified via a quick program at
https://github.com/sunshowers/msg-nosignal-test/ that even when the SIGPIPE
handler is reset to SIG_DFL, writes to closed sockets now error out with EPIPE.
(Under ordinary circumstances UDP writes won't cause MSG_NOSIGNAL.)
2024-07-27 02:10:24 +00:00
..
aix Support AIX in Rust standard library 2023-10-09 14:02:57 +08:00
android Convert Unix{Datagram,Stream}::{set_}passcred() to per-OS traits 2023-10-25 17:01:21 +09:00
darwin Merge Apple std::os extensions modules into std::os::darwin 2024-07-14 15:31:54 +02:00
dragonfly Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
emscripten Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
espidf Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
fd Rollup merge of #127733 - GrigorenkoPV:don't-forget, r=Amanieu 2024-07-24 18:00:39 +02:00
fortanix_sgx Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
freebsd std::net: adding acceptfilter feature for netbsd/freebsd. 2024-03-20 18:15:31 +00:00
fuchsia Add definitions for riscv64gc-unknown-fuchsia 2023-04-25 16:42:59 -07:00
haiku Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
hermit export std::os::fd module on HermitOS 2024-06-12 20:46:52 +02:00
horizon Fix warnings when checking armv6k-nintendo-3ds 2024-07-21 20:12:54 -04:00
hurd added support for GNU/Hurd 2023-09-21 17:31:25 +02:00
illumos Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
ios Merge Apple std::os extensions modules into std::os::darwin 2024-07-14 15:31:54 +02:00
l4re Remove asmjs from library 2023-10-28 23:10:45 -07:00
linux to extract a pidfd we must consume the child 2024-06-22 00:46:55 +02:00
macos Merge Apple std::os extensions modules into std::os::darwin 2024-07-14 15:31:54 +02:00
net os::net: expanding TcpStreamExt for Linux with tcp_deferaccept. 2024-02-21 20:59:15 +00:00
netbsd std::net: adding acceptfilter feature for netbsd/freebsd. 2024-03-20 18:15:31 +00:00
nto Update library/std/src/os/nto/mod.rs 2023-03-01 06:42:40 +01:00
openbsd Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
raw Remove Windows dependency on libc 2024-05-20 11:13:31 -04:00
redox Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
solaris Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
solid Rollup merge of #127733 - GrigorenkoPV:don't-forget, r=Amanieu 2024-07-24 18:00:39 +02:00
uefi uefi: Forbid unwrapped unsafe in platform modules 2024-07-16 16:21:10 -07:00
unix [illumos/solaris] set MSG_NOSIGNAL while writing to sockets 2024-07-27 02:10:24 +00:00
vita PS Vita std support 2023-05-07 18:57:43 +03:00
vxworks Take sys/vxworks/{fd,fs,io} from sys/unix instead. 2020-10-16 06:19:00 +02:00
wasi Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
wasip2 Rename wasm32-wasi-preview2 to wasm32-wasip2 2024-02-27 10:14:45 -05:00
windows Rollup merge of #127733 - GrigorenkoPV:don't-forget, r=Amanieu 2024-07-24 18:00:39 +02:00
xous xous: Forbid unwrapped unsafe in platform modules 2024-07-16 16:16:03 -07:00
mod.rs std: deny(unsafe_op_in_unsafe_fn) but allow sites 2024-07-14 16:44:01 -07:00