Module nix::unistd

source ·
Expand description

Safe wrappers around functions found in libc “unistd.h” header

Structs

Enums

Functions

  • Checks the file named by path for accessibility according to the flags given by amode See access(2)
  • Change the current working directory of the calling process (see chdir(2)).
  • Close a raw file descriptor
  • Create a copy of the specified file descriptor (see dup(2)).
  • Create a copy of the specified file descriptor using the specified fd (see dup(2)).
  • Create a new copy of the specified file descriptor using the specified fd and flags (see dup(2)).
  • Checks the file named by path for accessibility according to the flags given by mode using effective UID, effective GID and supplementary group lists.
  • Checks the file named by path for accessibility according to the flags given by mode
  • Change the current working directory of the process to the one given as an open file descriptor (see fchdir(2)).
  • Synchronize the data of a file
  • Synchronize changes to a file
  • Truncate a file to a specified length
  • Returns the current directory as a PathBuf
  • Link one file to another file
  • Move the read/write file offset.
  • Creates new directory path with access rights mode. (see mkdir(2))
  • Creates new fifo special file (named pipe) with path path and access rights mode.
  • Creates new fifo special file (named pipe) with path path and access rights mode.
  • Creates a regular file which persists even after process termination
  • Create an interprocess channel.
  • Like pipe, but allows setting certain file descriptor flags.
  • Read from a raw file descriptor.
  • Suspend execution for an interval of time
  • Creates a symbolic link at path2 which points to path1.
  • Commit filesystem caches to disk
  • Commit filesystem caches containing file referred to by the open file descriptor fd to disk
  • Truncate a file to a specified length
  • Remove a directory entry
  • Remove a directory entry
  • Write to a raw file descriptor.