1#![stable(feature = "rust1", since = "1.0.0")]
32#![doc(cfg(unix))]
33
34#[cfg(doc)]
36use crate::os::linux as platform;
37
38#[cfg(not(doc))]
39mod platform {
40 #[cfg(target_os = "aix")]
41 pub use crate::os::aix::*;
42 #[cfg(target_os = "android")]
43 pub use crate::os::android::*;
44 #[cfg(target_os = "cygwin")]
45 pub use crate::os::cygwin::*;
46 #[cfg(target_vendor = "apple")]
47 pub use crate::os::darwin::*;
48 #[cfg(target_os = "dragonfly")]
49 pub use crate::os::dragonfly::*;
50 #[cfg(target_os = "emscripten")]
51 pub use crate::os::emscripten::*;
52 #[cfg(target_os = "espidf")]
53 pub use crate::os::espidf::*;
54 #[cfg(target_os = "freebsd")]
55 pub use crate::os::freebsd::*;
56 #[cfg(target_os = "fuchsia")]
57 pub use crate::os::fuchsia::*;
58 #[cfg(target_os = "haiku")]
59 pub use crate::os::haiku::*;
60 #[cfg(target_os = "horizon")]
61 pub use crate::os::horizon::*;
62 #[cfg(target_os = "hurd")]
63 pub use crate::os::hurd::*;
64 #[cfg(target_os = "illumos")]
65 pub use crate::os::illumos::*;
66 #[cfg(target_os = "l4re")]
67 pub use crate::os::l4re::*;
68 #[cfg(target_os = "linux")]
69 pub use crate::os::linux::*;
70 #[cfg(target_os = "netbsd")]
71 pub use crate::os::netbsd::*;
72 #[cfg(target_os = "nto")]
73 pub use crate::os::nto::*;
74 #[cfg(target_os = "nuttx")]
75 pub use crate::os::nuttx::*;
76 #[cfg(target_os = "openbsd")]
77 pub use crate::os::openbsd::*;
78 #[cfg(target_os = "redox")]
79 pub use crate::os::redox::*;
80 #[cfg(target_os = "rtems")]
81 pub use crate::os::rtems::*;
82 #[cfg(target_os = "solaris")]
83 pub use crate::os::solaris::*;
84 #[cfg(target_os = "vita")]
85 pub use crate::os::vita::*;
86 #[cfg(target_os = "vxworks")]
87 pub use crate::os::vxworks::*;
88}
89
90pub mod ffi;
91pub mod fs;
92pub mod io;
93pub mod net;
94pub mod process;
95pub mod raw;
96pub mod thread;
97pub mod xdg;
98
99#[stable(feature = "rust1", since = "1.0.0")]
103pub mod prelude {
104 #[doc(no_inline)]
105 #[stable(feature = "rust1", since = "1.0.0")]
106 pub use super::ffi::{OsStrExt, OsStringExt};
107 #[doc(no_inline)]
108 #[stable(feature = "rust1", since = "1.0.0")]
109 pub use super::fs::DirEntryExt;
110 #[doc(no_inline)]
111 #[stable(feature = "file_offset", since = "1.15.0")]
112 pub use super::fs::FileExt;
113 #[doc(no_inline)]
114 #[stable(feature = "rust1", since = "1.0.0")]
115 pub use super::fs::{FileTypeExt, MetadataExt, OpenOptionsExt, PermissionsExt};
116 #[doc(no_inline)]
117 #[stable(feature = "rust1", since = "1.0.0")]
118 pub use super::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd};
119 #[doc(no_inline)]
120 #[unstable(feature = "unix_send_signal", issue = "141975")]
121 pub use super::process::ChildExt;
122 #[doc(no_inline)]
123 #[stable(feature = "rust1", since = "1.0.0")]
124 pub use super::process::{CommandExt, ExitStatusExt};
125 #[doc(no_inline)]
126 #[stable(feature = "rust1", since = "1.0.0")]
127 pub use super::thread::JoinHandleExt;
128}