-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make std::os::fd
public.
#98368
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
Make std::os::fd
public.
#98368
Changes from all commits
c846a2a
09bbc42
bda1262
7d80510
a7f3ba9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
//! Owned and borrowed Unix-like file descriptors. | ||
//! | ||
//! This module is supported on Unix platforms and WASI, which both use a | ||
//! similar file descriptor system for referencing OS resources. | ||
|
||
#![stable(feature = "io_safety", since = "1.63.0")] | ||
#![deny(unsafe_op_in_unsafe_fn)] | ||
|
||
// `RawFd`, `AsRawFd`, etc. | ||
pub mod raw; | ||
mod raw; | ||
|
||
// `OwnedFd`, `AsFd`, etc. | ||
pub mod owned; | ||
mod owned; | ||
|
||
// Implementations for `AsRawFd` etc. for network types. | ||
mod net; | ||
|
||
#[cfg(test)] | ||
mod tests; | ||
|
||
// Export the types and traits for the public API. | ||
#[unstable(feature = "os_fd", issue = "98699")] | ||
pub use owned::*; | ||
#[unstable(feature = "os_fd", issue = "98699")] | ||
pub use raw::*; |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
//! WASI-specific extensions to general I/O primitives. | ||
|
||
#![deny(unsafe_op_in_unsafe_fn)] | ||
#![unstable(feature = "wasi_ext", issue = "71213")] | ||
|
||
mod fd; | ||
mod raw; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This removed two There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They're indeed dead now. I've now filed #135512 to remove them. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And I've now noticed that #135491 already does this, so closing in favor off that. |
||
|
||
#[unstable(feature = "wasi_ext", issue = "71213")] | ||
pub use fd::*; | ||
#[unstable(feature = "wasi_ext", issue = "71213")] | ||
pub use raw::*; | ||
pub use crate::os::fd::*; |
Uh oh!
There was an error while loading. Please reload this page.