aboutsummaryrefslogtreecommitdiff
path: root/std/os/bits/linux.zig
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2019-07-07 14:11:43 +1000
committerdaurnimator <quae@daurnimator.com>2019-07-07 14:11:43 +1000
commit7610d39413d45b5d72c532b2128a81d080fe342f (patch)
treeebe58293dad3988fece2155da7f6491f389704ad /std/os/bits/linux.zig
parentb118806c69e44029a7af9c9b8bdfa9cdcd280260 (diff)
downloadzig-7610d39413d45b5d72c532b2128a81d080fe342f.tar.gz
zig-7610d39413d45b5d72c532b2128a81d080fe342f.zip
std: Linux AT_ constants are the same across architectures
Diffstat (limited to 'std/os/bits/linux.zig')
-rw-r--r--std/os/bits/linux.zig30
1 files changed, 30 insertions, 0 deletions
diff --git a/std/os/bits/linux.zig b/std/os/bits/linux.zig
index a11d843f88..40d142c9ba 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;