Skip to main content

Module sys

Module sys 

Source

Constantsยง

O_ACCMODE
Mask for file access modes.
O_APPEND
Set append mode.
O_ASYNC
O_CLOEXEC
Atomically set the FD_CLOEXEC flag 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.