Expand description
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.
Re-exports§
pub use crate::io::fcntl_dupfd_cloexec;
pub use crate::io::fcntl_getfd;
pub use crate::io::fcntl_setfd;
Functions§
fcntl(fd, F_ADD_SEALS)
fcntl(fd, F_GET_SEALS)
fcntl(fd, F_GETFL)
—Returns a file descriptor’s access mode and status.fcntl(fd, F_SETLK)
—Acquire or release anfcntl
-style lock.fcntl(fd, F_SETFL, flags)
—Sets a file descriptor’s status.