Dan Gohman
|
907f00be30
|
Add more comments about the INVALID_HANDLE_VALUE situation.
|
2021-08-19 12:02:40 -07:00 |
|
Dan Gohman
|
6d7211738d
|
Add Safety comments to the As* for Owned* implementations.
|
2021-08-19 12:02:40 -07:00 |
|
Dan Gohman
|
6486f89cbc
|
Add Owned*, Borrowed*, and As* to the preludes.
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
0cb69dec57
|
Rename OwnedFd's private field to match it's debug output.
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
45b5de3376
|
Delete a spurious empty comment line.
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
926344a80f
|
Add a comment about how OwnedHandle should not be used with registry handles.
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
31f7bf8271
|
Add a comment about OptionFileHandle.
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
1c6bf04edb
|
Update library/std/src/os/windows/io/socket.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
a23ca7ceb1
|
Update library/std/src/os/windows/io/handle.rs
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
|
2021-08-19 12:02:39 -07:00 |
|
Dan Gohman
|
d15418586c
|
I/O safety.
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>
|
2021-08-19 12:02:39 -07:00 |
|
Kornel
|
8f9d0f12eb
|
Use AsRef in CommandExt for raw_arg
|
2021-07-09 14:09:48 +01:00 |
|
Kornel
|
d868da7796
|
Unescaped command-line arguments for Windows
Fixes #29494
|
2021-07-09 14:09:48 +01:00 |
|
Christiaan Dirkx
|
ffc20e48de
|
Move std::sys::windows::ext to std::os::windows
|
2021-05-03 16:56:20 +02:00 |
|