Module fd

Source
Expand description

Functions which operate on file descriptors.

Structs§

Timestamps
Timestamps used by utimensat and futimens.

Constants§

NFS_SUPER_MAGIC
The filesystem magic number for NFS.
PROC_SUPER_MAGIC
The filesystem magic number for procfs.

Functions§

fallocate
fallocate(fd, mode, offset, len)—Adjusts file allocation.
fchmod
fchmod(fd, mode)—Sets open file or directory permissions.
fchown
fchown(fd, owner, group)—Sets open file or directory ownership.
fdatasync
fdatasync(fd)—Ensures that file data is written to the underlying storage device.
flock
flock(fd, operation)—Acquire or release an advisory lock on an open file.
fstat
fstat(fd)—Queries metadata for an open file or directory.
fstatfs
fstatfs(fd)—Queries filesystem statistics for an open file or directory.
fstatvfs
fstatvfs(fd)—Queries filesystem statistics for an open file or directory, POSIX version.
fsync
fsync(fd)—Ensures that file data and metadata is written to the underlying storage device.
ftruncate
ftruncate(fd, length)—Sets the length of a file.
futimens
futimens(fd, times)—Sets timestamps for an open file or directory.
seek
lseek(fd, offset, whence)—Repositions a file descriptor within a file.
syncfs
syncfs(fd)—Flush cached filesystem data.
tell
lseek(fd, 0, SEEK_CUR)—Returns the current position within a file.