-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I/O safety. #87329
I/O safety. #87329
Commits on Aug 19, 2021
-
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: - <rust-lang#87074> RFC: - <https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md>
Configuration menu - View commit details
-
Copy full SHA for d154185 - Browse repository at this point
Copy the full SHA d154185View commit details -
Update library/std/src/os/unix/io/fd.rs
Co-authored-by: Josh Triplett <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a38511 - Browse repository at this point
Copy the full SHA 3a38511View commit details -
Update library/std/src/os/windows/io/handle.rs
Co-authored-by: Josh Triplett <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a23ca7c - Browse repository at this point
Copy the full SHA a23ca7cView commit details -
Update library/std/src/os/windows/io/socket.rs
Co-authored-by: Josh Triplett <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c6bf04 - Browse repository at this point
Copy the full SHA 1c6bf04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f8a450 - Browse repository at this point
Copy the full SHA 1f8a450View commit details -
Be more precise about
mmap
and undefined behavior.`mmap` doesn't *always* cause undefined behavior; it depends on the details of how you use it.
Configuration menu - View commit details
-
Copy full SHA for 6b4dbdb - Browse repository at this point
Copy the full SHA 6b4dbdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f7bf8 - Browse repository at this point
Copy the full SHA 31f7bf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 926344a - Browse repository at this point
Copy the full SHA 926344aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45b5de3 - Browse repository at this point
Copy the full SHA 45b5de3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cb69de - Browse repository at this point
Copy the full SHA 0cb69deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6486f89 - Browse repository at this point
Copy the full SHA 6486f89View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d72117 - Browse repository at this point
Copy the full SHA 6d72117View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b35f74 - Browse repository at this point
Copy the full SHA 1b35f74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68964a7 - Browse repository at this point
Copy the full SHA 68964a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab08639 - Browse repository at this point
Copy the full SHA ab08639View commit details -
Configuration menu - View commit details
-
Copy full SHA for 907f00b - Browse repository at this point
Copy the full SHA 907f00bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71dab73 - Browse repository at this point
Copy the full SHA 71dab73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dbd6d6 - Browse repository at this point
Copy the full SHA 1dbd6d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18a9f46 - Browse repository at this point
Copy the full SHA 18a9f46View commit details -
Rename OptionFileHandle to HandleOrInvalid and make it just wrap an O…
…ption<OwnedHandle> The name (and updated documentation) make the FFI-only usage clearer, and wrapping Option<OwnedHandle> avoids the need to write a separate Drop or Debug impl. Co-authored-by: Josh Triplett <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ae1eee - Browse repository at this point
Copy the full SHA 1ae1eeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for cada5fb - Browse repository at this point
Copy the full SHA cada5fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7d9ab5 - Browse repository at this point
Copy the full SHA a7d9ab5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b99f8c - Browse repository at this point
Copy the full SHA 9b99f8cView commit details -
Use the correct
into_*
on Windows to avoid dropping a stdio handle.Use `into_raw_handle()` rather than `into_inner()` to completely consume a `Handle` without dropping its contained handle.
Configuration menu - View commit details
-
Copy full SHA for 6f87288 - Browse repository at this point
Copy the full SHA 6f87288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 187ee5c - Browse repository at this point
Copy the full SHA 187ee5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0377a63 - Browse repository at this point
Copy the full SHA 0377a63View commit details -
Configuration menu - View commit details
-
Copy full SHA for e555003 - Browse repository at this point
Copy the full SHA e555003View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4dfa19 - Browse repository at this point
Copy the full SHA b4dfa19View commit details