Skip to main contentModule flag
Source - CallFlags
- Flags for IPC call operations (used with
SYS_IPC_CALL). - MapFlags
- Memory mapping flags for
SYS_MMAP. - OpenFlags
- File open flags for
SYS_OPEN and SYS_OPENAT. - UnlinkFlags
- Flags for
SYS_UNLINKAT.
- O_ACCMODE
- Access mask for read/write mode
- O_APPEND
- Append to file (writes always go to end)
- O_CREAT
- Create file if it does not exist
- O_DIRECTORY
- Open directory only
- O_DSYNC
- Synchronized I/O data integrity
F8 FIX: was 0o02000000 = O_CLOEXEC on Linux! Linux x86_64: 0o10000.
- O_EXCL
- Create file exclusively (with O_CREAT)
- O_NOCTTY
- Don’t assign controlling terminal
F8 FIX (found by the golden-value test): was 0o400000 (= O_NOFOLLOW on
Linux!). Linux x86_64: O_NOCTTY = 0o000400.
- O_NOFOLLOW
- Don’t follow symbolic links
F8 FIX (testing-findings.md): was 0o100000, which is O_CLOEXEC on Linux!
Linux x86_64: O_NOFOLLOW = 0o400000.
- O_NONBLOCK
- Non-blocking mode
- O_RDONLY
- Open for reading only
- O_RDWR
- Open for reading and writing
- O_RSYNC
- Synchronized I/O read operations (Linux defines O_RSYNC == O_SYNC on x86_64)
- O_SYNC
- Synchronized I/O (data + metadata)
- O_TRUNC
- Truncate file to zero length if it exists
- O_WRONLY
- Open for writing only
- posix_oflags_to_strat9
- Translate POSIX
O_* flags to Strat9 ABI OpenFlags.