diff --git a/std/os/bits/linux.zig b/std/os/bits/linux.zig index a11d843f8..40d142c9b 100644 --- a/std/os/bits/linux.zig +++ b/std/os/bits/linux.zig @@ -22,6 +22,36 @@ pub const STDIN_FILENO = 0; pub const STDOUT_FILENO = 1; pub const STDERR_FILENO = 2; +/// Special value used to indicate openat should use the current working directory +pub const AT_FDCWD = 100; + +/// Do not follow symbolic links +pub const AT_SYMLINK_NOFOLLOW = 0x100; + +/// Remove directory instead of unlinking file +pub const AT_REMOVEDIR = 0x200; + +/// Follow symbolic links. +pub const AT_SYMLINK_FOLLOW = 0x400; + +/// Suppress terminal automount traversal +pub const AT_NO_AUTOMOUNT = 0x800; + +/// Allow empty relative pathname +pub const AT_EMPTY_PATH = 0x1000; + +/// Type of synchronisation required from statx() +pub const AT_STATX_SYNC_TYPE = 0x6000; + +/// - Do whatever stat() does +pub const AT_STATX_SYNC_AS_STAT = 0x0000; + +/// - Force the attributes to be sync'd with the server +pub const AT_STATX_FORCE_SYNC = 0x2000; + +/// - Don't sync attributes with the server +pub const AT_STATX_DONT_SYNC = 0x4000; + pub const FUTEX_WAIT = 0; pub const FUTEX_WAKE = 1; pub const FUTEX_FD = 2; diff --git a/std/os/bits/linux/arm64.zig b/std/os/bits/linux/arm64.zig index 527b78bbc..269a34a5a 100644 --- a/std/os/bits/linux/arm64.zig +++ b/std/os/bits/linux/arm64.zig @@ -331,13 +331,6 @@ pub const F_GETOWN_EX = 16; pub const F_GETOWNER_UIDS = 17; -pub const AT_FDCWD = -100; -pub const AT_SYMLINK_NOFOLLOW = 0x100; -pub const AT_REMOVEDIR = 0x200; -pub const AT_SYMLINK_FOLLOW = 0x400; -pub const AT_NO_AUTOMOUNT = 0x800; -pub const AT_EMPTY_PATH = 0x1000; - pub const VDSO_USEFUL = true; pub const VDSO_CGT_SYM = "__kernel_clock_gettime"; pub const VDSO_CGT_VER = "LINUX_2.6.39"; diff --git a/std/os/bits/linux/x86_64.zig b/std/os/bits/linux/x86_64.zig index 6012d877f..e7124ca99 100644 --- a/std/os/bits/linux/x86_64.zig +++ b/std/os/bits/linux/x86_64.zig @@ -394,13 +394,6 @@ pub const F_GETOWN_EX = 16; pub const F_GETOWNER_UIDS = 17; -pub const AT_FDCWD = -100; -pub const AT_SYMLINK_NOFOLLOW = 0x100; -pub const AT_REMOVEDIR = 0x200; -pub const AT_SYMLINK_FOLLOW = 0x400; -pub const AT_NO_AUTOMOUNT = 0x800; -pub const AT_EMPTY_PATH = 0x1000; - pub const VDSO_USEFUL = true; pub const VDSO_CGT_SYM = "__vdso_clock_gettime"; pub const VDSO_CGT_VER = "LINUX_2.6";