Module fcntl

Source
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.

Functions§

fcntl_add_seals
fcntl(fd, F_ADD_SEALS)—Add seals to fd’s inode.
fcntl_get_seals
fcntl(fd, F_GET_SEALS)—Return the seals for fd’s inode.
fcntl_getfl
fcntl(fd, F_GETFL)—Returns a file descriptor’s access mode and status.
fcntl_lock
fcntl(fd, F_SETLK)—Acquire or release an fcntl-style lock.
fcntl_setfl
fcntl(fd, F_SETFL, flags)—Sets a file descriptor’s status.