Constantsยง
- O_
ACCMODE - Mask for file access modes.
- O_
APPEND - Set append mode.
- O_ASYNC
- O_
CLOEXEC - Atomically set the
FD_CLOEXECflag on the new file desciptor. - O_CREAT
- Create file if it does not exist.
- O_
DIRECTORY - Fail if file is a non-directory file.
- O_EXCL
- Exclusive use flag.
- O_
EXLOCK - Non-POSIX, see https://man.openbsd.org/open.2.
- O_FSYNC
- O_
NDELAY - Non-POSIX, see https://www.man7.org/linux/man-pages/man2/open.2.html.
- O_
NOCTTY - Do not assign controlling terminal.
- O_
NOFOLLOW - Do not follow symbolic links.
- O_
NONBLOCK - Non-blocking mode.
- O_PATH
- Non-POSIX, see https://www.man7.org/linux/man-pages/man2/open.2.html.
- O_
RDONLY - Open for reading only.
- O_RDWR
- Open for reading and writing.
- O_
SHLOCK - Non-POSIX, see https://man.openbsd.org/open.2.
- O_
SYMLINK - O_SYNC
- Write according to synchronized I/O file integrity completion.
- O_TRUNC
- Truncate flag.
- O_
WRONLY - Open for writing only.