Module rustix::fs::fd

source ·
Expand description

Functions which operate on file descriptors.

Structs§

Constants§

Functions§

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