diff options
| author | bc-universe <9028220+bc-universe@users.noreply.github.com> | 2025-11-24 12:14:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-24 12:14:17 +0100 |
| commit | 9712624e04127bfa14944aae3233c44cee7dd2c4 (patch) | |
| tree | badbb7f079de4770703b47e887bbdc6366017e97 /core/sys/linux/bits.odin | |
| parent | 5e3648b83c78d77f725e871fc1f22c121a27fba9 (diff) | |
Implement more Linux syscalls (#5705)
* Implement some more Linux syscalls
* Fixed typo and removed stray comments
* Correct types for some syscalls
* Fix types and add variadic argument for prctl
* flag fixes
* when x86/amd64 only
* more fixes
---------
Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
Diffstat (limited to 'core/sys/linux/bits.odin')
| -rw-r--r-- | core/sys/linux/bits.odin | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin index 12ae949ef..213d6c26f 100644 --- a/core/sys/linux/bits.odin +++ b/core/sys/linux/bits.odin @@ -2226,3 +2226,46 @@ IO_Uring_Submission_Queue_Flags_Bits :: enum { CQ_OVERFLOW, TASKRUN, } + +Mount_Flags_Bits :: enum { + RDONLY = log2(1), + NOSUID = log2(2), + NODEV = log2(4), + NOEXEC = log2(8), + SYNCHRONOUS = log2(16), + REMOUNT = log2(32), + MANDLOCK = log2(64), + DIRSYNC = log2(128), + NOATIME = log2(1024), + NODIRATIME = log2(2048), + BIND = log2(4096), + MOVE = log2(8192), + REC = log2(16384), + SILENT = log2(32768), + POSIXACL = log2(1<<16), + UNBINDABLE = log2(1<<17), + PRIVATE = log2(1<<18), + SLAVE = log2(1<<19), + SHARED = log2(1<<20), + RELATIME = log2(1<<21), + KERNMOUNT = log2(1<<22), + I_VERSION = log2(1<<23), + STRICTATIME = log2(1<<24), + LAZYTIME = log2(1<<25), + ACTIVE = log2(1<<30), + NOUSER = log2(1<<31), + NOSYMFOLLOW = log2(256), +} + +Umount2_Flags_Bits :: enum { + MNT_FORCE = log2(0x00000001), + MNT_DETACH = log2(0x00000002), + MNT_EXPIRE = log2(0x00000004), + UMOUNT_NOFOLLOW = log2(0x00000008), + UMOUNT_UNUSED = log2(0x80000000), +} + +Swap_Flags_Bits :: enum { + PREFER = log2(0x8000), + DISCARD = log2(0x10000), +} |