Flags
open-flags
Open flags used by open-at.
flags open-flags {
create,
directory,
exclusive,
truncate,
}Flags
| Flag | Description |
|---|---|
| create | Create file if it does not exist, similar to O_CREAT in POSIX. |
| directory | Fail if not a directory, similar to O_DIRECTORY in POSIX. |
| exclusive | Fail if file already exists, similar to O_EXCL in POSIX. |
| truncate | Truncate file to size 0, similar to O_TRUNC in POSIX. |