aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-21 19:39:30 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-21 19:39:30 -0400
commit98c4365b66e6184aa867ec7d5d1d01435ec99798 (patch)
tree7f4431847f49f9c0c14e13c8485a28b6fda0948e /lib/std
parent87f632b08a04f4a03facfa220df1cbc466a5de39 (diff)
downloadzig-98c4365b66e6184aa867ec7d5d1d01435ec99798.tar.gz
zig-98c4365b66e6184aa867ec7d5d1d01435ec99798.zip
darwin: add AT_* bits
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/os/bits/darwin.zig14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/std/os/bits/darwin.zig b/lib/std/os/bits/darwin.zig
index b076f95884..fe3156bb90 100644
--- a/lib/std/os/bits/darwin.zig
+++ b/lib/std/os/bits/darwin.zig
@@ -1178,3 +1178,17 @@ pub fn S_IWHT(m: u32) bool {
return m & S_IFMT == S_IFWHT;
}
pub const HOST_NAME_MAX = 72;
+
+pub const AT_FDCWD = -2;
+
+/// Use effective ids in access check
+pub const AT_EACCESS = 0x0010;
+
+/// Act on the symlink itself not the target
+pub const AT_SYMLINK_NOFOLLOW = 0x0020;
+
+/// Act on target of symlink
+pub const AT_SYMLINK_FOLLOW = 0x0040;
+
+/// Path refers to directory
+pub const AT_REMOVEDIR = 0x0080;