Module ggstd::os

source ·

Modules

  • Package user allows user account lookups by name or id.

Functions

  • Create creates or truncates the named file. If the file already exists, it is truncated. If the file does not exist, it is created.
  • get_uid returns the numeric user id of the caller.
  • Open opens the named file for reading. If successful, methods on the returned file can be used for reading; the associated file descriptor has mode O_RDONLY.
  • read_file reads the named file and returns the contents.