about summary refs log tree commit diff
path: root/library/std/src/os/unix/io/raw.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-06-14 10:44:14 -0700
committerDan Gohman <dev@sunfishcode.online>2022-08-29 08:31:40 -0700
commitc846a2af8ddaa14ff2c2da25bc97bbd8d4284df2 (patch)
tree64395199d0e913db21fdd1148b19df97ad5e37c4 /library/std/src/os/unix/io/raw.rs
parentb96fa1a25ced4cfa72923e6d45f47f36c2c00ce0 (diff)
downloadrust-c846a2af8ddaa14ff2c2da25bc97bbd8d4284df2.tar.gz
rust-c846a2af8ddaa14ff2c2da25bc97bbd8d4284df2.zip
Make `std::os::fd` public.
`std::os::fd` defines types like `OwnedFd` and `RawFd` and is common
between Unix and non-Unix platforms that share a basic file-descriptor
concept. Rust currently uses this internally to simplify its own code,
but it would be useful for external users in the same way, so make it
public.

This means that `OwnedFd` etc. will all appear in three places, for
example on unix platforms:
 - `std::os::fd::OwnedFd`
 - `std::os::unix::io::OwnedFd`
 - `std::os::unix::prelude::OwnedFd`
Diffstat (limited to 'library/std/src/os/unix/io/raw.rs')
-rw-r--r--library/std/src/os/unix/io/raw.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/library/std/src/os/unix/io/raw.rs b/library/std/src/os/unix/io/raw.rs
deleted file mode 100644
index a4d2ba797d9..00000000000
--- a/library/std/src/os/unix/io/raw.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-//! Unix-specific extensions to general I/O primitives.
-
-#![stable(feature = "rust1", since = "1.0.0")]
-
-#[stable(feature = "rust1", since = "1.0.0")]
-pub use crate::os::fd::raw::*;