Module fcntl

Source
Expand description

File control options

Re-exports§

pub use self::FcntlArg::*;

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’s F_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.

Constants§

AT_FDCWD
A file descriptor referring to the working directory of the current process that should be ONLY passed to the dirfd argument of those xxat() functions.

Traits§

Flockable
Represents valid types for flock.

Functions§

fallocate
Manipulates file space.
fcntl
Perform various operations on open file descriptors.
flockDeprecated
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 additional flags argument.