about summary refs log tree commit diff
path: root/library/std/src/os/wasi/io/fd.rs
AgeCommit message (Collapse)AuthorLines
2025-01-14wasi/io: remove dead filesRalf Jung-9/+0
2021-08-19Factor out a common `RawFd`/`AsRawFd`/etc for Unix and WASI.Dan Gohman-1/+1
2021-08-19Factor out Unix and WASI fd code into a common module.Dan Gohman-280/+1
2021-08-19Synchronize minor differences between Unix and WASI implementations.Dan Gohman-3/+4
2021-08-19Add Safety comments to the `As*` for `Owned*` implementations.Dan Gohman-0/+3
2021-08-19Rename `OwnedFd`'s private field to match it's debug output.Dan Gohman-17/+17
2021-08-19Add a test to ensure that RawFd is the size we assume it is.Dan Gohman-0/+4
2021-08-19I/O safety.Dan Gohman-0/+280
Introduce `OwnedFd` and `BorrowedFd`, and the `AsFd` trait, and implementations of `AsFd`, `From<OwnedFd>` and `From<T> for OwnedFd` for relevant types, along with Windows counterparts for handles and sockets. Tracking issue: - <https://github.com/rust-lang/rust/issues/87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md>