Expand description
Flags associated with a File
.
Constants§
- O_
ACCMODE - Bitmask for access mode flags.
- O_
APPEND - File is opened in append mode.
- O_ASYNC
- Signal-driven I/O is enabled.
- O_
CLOEXEC - Close-on-exec flag is set.
- O_CREAT
- File was created if it didn’t already exist.
- O_
DIRECT - Direct I/O is enabled for this file.
- O_
DIRECTORY - File must be a directory.
- O_DSYNC
- Like
O_SYNC
except metadata is not synced. - O_EXCL
- Ensure that this file is created with the
open(2)
call. - O_
LARGEFILE - Large file size enabled (
off64_t
overoff_t
). - O_
NDELAY - File is using nonblocking I/O.
- O_
NOATIME - Do not update the file last access time.
- O_
NOCTTY - File should not be used as process’s controlling terminal.
- O_
NOFOLLOW - If basename of path is a symbolic link, fail open.
- O_
NONBLOCK - File is using nonblocking I/O.
- O_PATH
- Used to obtain a path file descriptor.
- O_
RDONLY - File is read only.
- O_RDWR
- File can be both read and written.
- O_SYNC
- Write operations on this file will flush data and metadata.
- O_
TMPFILE - This file is an unnamed temporary regular file.
- O_TRUNC
- File should be truncated to length 0.
- O_
WRONLY - File is write only.