diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-07-19 11:37:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 11:37:54 +0100 |
| commit | 685dbddcb53db6ac2ae40b06de6f9d2c0f264e95 (patch) | |
| tree | bde21a389ea6f85da088b037f4192f94deb4e6b5 /core/sys/linux | |
| parent | 27f9f0ba171444f48021744af2792bbfa290407b (diff) | |
| parent | 7b501b22bb5837d9c30379a973b149aba89a1a60 (diff) | |
Merge pull request #3939 from flysand7/os2-file-type
[os2]: Split file type from mode bits et other small fixes
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/bits.odin | 2 | ||||
| -rw-r--r-- | core/sys/linux/constants.odin | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin index 1e9e5bbbd..96c3de18d 100644 --- a/core/sys/linux/bits.odin +++ b/core/sys/linux/bits.odin @@ -244,7 +244,7 @@ Mode_Bits :: enum { ISVTX = 9, // 0o0001000 ISGID = 10, // 0o0002000 ISUID = 11, // 0o0004000 - IFFIFO = 12, // 0o0010000 + IFIFO = 12, // 0o0010000 IFCHR = 13, // 0o0020000 IFDIR = 14, // 0o0040000 IFREG = 15, // 0o0100000 diff --git a/core/sys/linux/constants.odin b/core/sys/linux/constants.odin index 51f7db68f..f3e9f5ff9 100644 --- a/core/sys/linux/constants.odin +++ b/core/sys/linux/constants.odin @@ -39,11 +39,11 @@ PRIO_MIN :: -20 SIGRTMIN :: Signal(32) SIGRTMAX :: Signal(64) -S_IFMT :: Mode{.IFREG, .IFDIR, .IFCHR, .IFFIFO} +S_IFMT :: Mode{.IFREG, .IFDIR, .IFCHR, .IFIFO} S_IFSOCK :: Mode{.IFREG, .IFDIR} S_IFLNK :: Mode{.IFREG, .IFCHR} S_IFBLK :: Mode{.IFDIR, .IFCHR} -S_IFFIFO :: Mode{.IFFIFO} +S_IFIFO :: Mode{.IFIFO} S_IFCHR :: Mode{.IFCHR} S_IFDIR :: Mode{.IFDIR} S_IFREG :: Mode{.IFREG} @@ -51,7 +51,7 @@ S_IFREG :: Mode{.IFREG} /* Checks the Mode bits to see if the file is a named pipe (FIFO). */ -S_ISFIFO :: #force_inline proc "contextless" (m: Mode) -> bool {return (S_IFFIFO == (m & S_IFMT))} +S_ISFIFO :: #force_inline proc "contextless" (m: Mode) -> bool {return (S_IFIFO == (m & S_IFMT))} /* Check the Mode bits to see if the file is a character device. |