Module fcntl
File control options
Structs
- AtFlags Flags that control how the various *at syscalls behave.
- FallocateFlags Mode argument flags for fallocate determining operation performed on a given range.
-
FdFlag
Additional configuration flags for
fcntl'sF_SETFD. - Flock Represents an owned flock, which unlocks on drop.
- OFlag Configuration options for opened files.
-
OpenHow
Specifies how [
openat2()] should open a pathname. -
RenameFlags
Flags for use with
renameat2. - ResolveFlag Path resolution flags.
- SealFlag Additional flags for file sealing, which allows for limiting operations on a file.
Enums
-
FcntlArg
Commands for use with
fcntl. -
FlockArg
Operations for use with
Flock::lock. -
PosixFadviseAdvice
The specific advice provided to
posix_fadvise.
Traits
- Flockable Represents valid types for flock.
Functions
- fallocate Manipulates file space.
- fcntl Perform various operations on open file descriptors.
- flock
- open open or create a file for reading, writing or executing
- openat open or create a file for reading, writing or executing
- openat2 Open or create a file for reading, writing or executing.
- posix_fadvise Allows a process to describe to the system its data access behavior for an open file descriptor.
- posix_fallocate Pre-allocate storage for a range in a file
- readlink Read value of a symbolic link
- readlinkat Read value of a symbolic link.
- renameat Change the name of a file.
-
renameat2
Like
renameat, but with an additionalflagsargument.
Constants
-
AT_FDCWD
A file descriptor referring to the working directory of the current process
that should be ONLY passed to the
dirfdargument of thosexxat()functions.