rust/library/std/src/os
Jubilee 476d399782
Rollup merge of #127750 - ChrisDenton:safe-unsafe-unsafe, r=workingjubilee
Make os/windows and pal/windows default to `#![deny(unsafe_op_in_unsafe_fn)]`

This is to prevent regressions in modules that currently pass. I did also fix up a few trivial places where the module contained only one or two simple wrappers. In more complex cases we should try to ensure the `unsafe` blocks are appropriately scoped and have any appropriate safety comments.

This does not fix the windows bits of #127747 but it should help prevent regressions until that is done and also make it more obvious specifically which modules need attention.
2024-07-15 02:28:44 -07: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 clarify sys::unix::fd::FileDesc::drop comment (#66876) 2024-07-07 09:29:16 -06:00
fortanix_sgx sync the various FromRawFd trait docs, and remove 'valid' 2023-08-14 08:49:40 +02: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 Update libc::stat field names 2022-06-13 20:44:58 -07: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 kmc-solid: Re-export {As,Borrowed,Owned}Fd in std::os::solid::prelude 2023-11-08 10:52:00 +09:00
uefi Rebase to master 2023-09-22 17:23:33 +05:30
unix Merge Apple std::os extensions modules into std::os::darwin 2024-07-14 15:31:54 +02: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 Make os/windows default to deny unsafe in unsafe 2024-07-15 07:17:39 +00:00
xous rename ptr::from_exposed_addr -> ptr::with_exposed_provenance 2024-03-23 13:18:33 +01:00
mod.rs std: deny(unsafe_op_in_unsafe_fn) but allow sites 2024-07-14 16:44:01 -07:00