Flags

open-flags

Open flags used by open-at.

flags open-flags {
  create,
  directory,
  exclusive,
  truncate,
}

Flags

FlagDescription
createCreate file if it does not exist, similar to O_CREAT in POSIX.
directoryFail if not a directory, similar to O_DIRECTORY in POSIX.
exclusiveFail if file already exists, similar to O_EXCL in POSIX.
truncateTruncate file to size 0, similar to O_TRUNC in POSIX.