mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #3520 from flysand7/sys-linux-oflags
[sys/linux]: Fix bit numbers for open flags
This commit is contained in:
+21
-18
@@ -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 {
|
Open_Flags_Bits :: enum {
|
||||||
RDONLY = 0,
|
WRONLY = 0,
|
||||||
WRONLY = 1,
|
RDWR = 1,
|
||||||
RDWR = 2,
|
CREAT = 8,
|
||||||
CREAT = 6,
|
EXCL = 9,
|
||||||
EXCL = 7,
|
NOCTTY = 10,
|
||||||
NOCTTY = 8,
|
TRUNC = 11,
|
||||||
TRUNC = 9,
|
APPEND = 12,
|
||||||
APPEND = 10,
|
NONBLOCK = 14,
|
||||||
NONBLOCK = 11,
|
DSYNC = 16,
|
||||||
DSYNC = 12,
|
ASYNC = 17,
|
||||||
ASYNC = 13,
|
DIRECT = 18,
|
||||||
DIRECT = 14,
|
LARGEFILE = 20,
|
||||||
DIRECTORY = 16,
|
DIRECTORY = 21,
|
||||||
NOFOLLOW = 17,
|
NOFOLLOW = 22,
|
||||||
NOATIME = 18,
|
NOATIME = 24,
|
||||||
CLOEXEC = 19,
|
CLOEXEC = 25,
|
||||||
PATH = 21,
|
PATH = 28,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user