about summary refs log tree commit diff
path: root/library/std/src/sys/windows/handle.rs
AgeCommit message (Collapse)AuthorLines
2022-01-25Rollup merge of #88794 - sunfishcode:sunfishcode/try-clone, r=joshtriplettMatthias Krüger-15/+6
Add a `try_clone()` function to `OwnedFd`. As suggested in #88564. This adds a `try_clone()` to `OwnedFd` by refactoring the code out of the existing `File`/`Socket` code. r? ``@joshtriplett``
2021-11-02more efficent File::read_buf impl for windows and unixDrMeepster-1/+34
2021-09-09Fix more Windows compilation errors.Dan Gohman-1/+5
2021-09-09Add a `try_clone()` function to `OwnedFd`.Dan Gohman-14/+1
As suggested in #88564. This adds a `try_clone()` to `OwnedFd` by refactoring the code out of the existing `File`/`Socket` code.
2021-08-19I/O safety.Dan Gohman-46/+76
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>
2020-07-27mv std libs to library/mark-0/+233