Name Description Size Coverage
close.rs The unsafe `close` for raw file descriptors. # Safety Operating on raw file descriptors is unsafe. 2411 -
dup.rs Functions which duplicate file descriptors. 5057 -
errno.rs The `Errno` type, which is a minimal wrapper around an error code. We define the error constants as individual `const`s instead of an enum because we may not know about all of the host's error values and we don't want unrecognized values to create undefined behavior. 1866 -
fcntl.rs The Unix `fcntl` function is effectively lots of different functions hidden behind a single dynamic dispatch interface. In order to provide a type-safe API, rustix makes them all separate functions so that they can have dedicated static type signatures. `fcntl` functions which are not specific to files or directories live in the [`io`] module instead. [`io`]: crate::io 5873 -
ioctl.rs The Unix `ioctl` function is effectively lots of different functions hidden behind a single dynamic dispatch interface. In order to provide a type-safe API, rustix makes them all separate functions so that they can have dedicated static type signatures. Some ioctls, such as those related to filesystems, terminals, and processes, live in other top-level API modules. 2784 -
is_read_write.rs The [`is_read_write`] function. [`is_read_write`]: https://docs.rs/rustix/*/rustix/io/fn.is_read_write.html 679 -
mod.rs I/O operations. If you're looking for [`SeekFrom`], that's in the [`fs`] module. [`SeekFrom`]: https://docs.rs/rustix/*/rustix/fs/enum.SeekFrom.html [`fs`]: https://docs.rs/rustix/*/rustix/fs/index.html 793 -
read_write.rs `read` and `write`, optionally positioned, optionally vectored. 12197 -