Expand description
fcntl.h implementation.
See https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/fcntl.h.html.
Re-exports§
pub use self::sys::*;pub use crate::header::bits_open_flags::*;
Modules§
Structs§
Constants§
- F_DUPFD
- Duplicate file descriptor.
- F_
DUPFD_ CLOEXEC - Duplicate file descriptor with the close-on-exec flag
FD_CLOEXECset. - F_GETFD
- Get file descriptor flags.
- F_GETFL
- Get file status flags and file access modes.
- F_GETLK
- Get information about file locks.
- F_
OFD_ GETLK - Get information about file locks.
- F_
OFD_ SETLK - Set an OFD-owned file lock.
- F_
OFD_ SETLKW - Set an OFD-owned file lock; wait if blocked.
- F_RDLCK
- Shared or read lock.
- F_SETFD
- Set file descriptor flags.
- F_SETFL
- Set file status flags.
- F_SETLK
- Set a process-owned file lock.
- F_
SETLKW - Set a process-owned file lock; wait if blocked.
- F_UNLCK
- Unlock.
- F_WRLCK
- Exclusive or write lock.
Functions§
- creat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/creat.html.
- fcntl⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html.
- open⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/open.html.
- openat⚠
- See https://pubs.opengroup.org/onlinepubs/9799919799/functions/openat.html.
- posix_
fallocate ⚠ - See https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_fallocate.html.