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 tofd’s inode.- fcntl_
get_ seals  fcntl(fd, F_GET_SEALS)—Return the seals forfd’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 anfcntl-style lock.- fcntl_
setfl  fcntl(fd, F_SETFL, flags)—Sets a file descriptor’s status.