aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
authorAndreas T Jonsson <mail@andreasjonsson.se>2024-05-02 09:27:46 +0200
committerAndreas T Jonsson <mail@andreasjonsson.se>2024-05-02 09:27:46 +0200
commit7feff1c11335be9c0d804c3ca93050b7d154aad8 (patch)
tree62c89fcafad6b6c9445cb37153e62a6b23223d39 /core/sys/linux
parent6bbdbb4447b0a2b5b485ae4351016b05ae79758f (diff)
parentfd582015fe2bbaabc42f78caefec1bd95f4d1465 (diff)
Merged with master
Diffstat (limited to 'core/sys/linux')
-rw-r--r--core/sys/linux/bits.odin39
1 files changed, 21 insertions, 18 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin
index ad519e1cd..4db689643 100644
--- a/core/sys/linux/bits.odin
+++ b/core/sys/linux/bits.odin
@@ -145,26 +145,29 @@ Errno :: enum i32 {
}
/*
- Bits for Open_Flags
+ Bits for Open_Flags.
+
+ RDONLY flag is not present, because it has the value of 0, i.e. it is the
+ default, unless WRONLY or RDWR is specified.
*/
Open_Flags_Bits :: enum {
- RDONLY = 0,
- WRONLY = 1,
- RDWR = 2,
- CREAT = 6,
- EXCL = 7,
- NOCTTY = 8,
- TRUNC = 9,
- APPEND = 10,
- NONBLOCK = 11,
- DSYNC = 12,
- ASYNC = 13,
- DIRECT = 14,
- DIRECTORY = 16,
- NOFOLLOW = 17,
- NOATIME = 18,
- CLOEXEC = 19,
- PATH = 21,
+ WRONLY = 0,
+ RDWR = 1,
+ CREAT = 8,
+ EXCL = 9,
+ NOCTTY = 10,
+ TRUNC = 11,
+ APPEND = 12,
+ NONBLOCK = 14,
+ DSYNC = 16,
+ ASYNC = 17,
+ DIRECT = 18,
+ LARGEFILE = 20,
+ DIRECTORY = 21,
+ NOFOLLOW = 22,
+ NOATIME = 24,
+ CLOEXEC = 25,
+ PATH = 28,
}
/*