1 //! I/O operations.
2 //!
3 //! If you're looking for [`SeekFrom`], that's in the [`fs`] module.
4 //!
5 //! [`SeekFrom`]: https://docs.rs/rustix/*/rustix/fs/enum.SeekFrom.html
6 //! [`fs`]: https://docs.rs/rustix/*/rustix/fs/index.html
7 
8 mod close;
9 #[cfg(not(windows))]
10 mod dup;
11 mod errno;
12 #[cfg(not(windows))]
13 mod fcntl;
14 mod ioctl;
15 #[cfg(not(any(windows, target_os = "redox")))]
16 #[cfg(all(feature = "fs", feature = "net"))]
17 mod is_read_write;
18 #[cfg(not(windows))]
19 mod read_write;
20 
21 pub use close::close;
22 #[cfg(not(windows))]
23 pub use dup::*;
24 pub use errno::{retry_on_intr, Errno, Result};
25 #[cfg(not(windows))]
26 pub use fcntl::*;
27 pub use ioctl::*;
28 #[cfg(not(any(windows, target_os = "redox")))]
29 #[cfg(all(feature = "fs", feature = "net"))]
30 pub use is_read_write::*;
31 #[cfg(not(windows))]
32 pub use read_write::*;
33