authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 19:39:30-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 19:39:30-04:00
log98c4365b66e6184aa867ec7d5d1d01435ec99798
tree7f4431847f49f9c0c14e13c8485a28b6fda0948e
parent87f632b08a04f4a03facfa220df1cbc466a5de39

darwin: add AT_* bits


1 files changed, 14 insertions(+), 0 deletions(-)

lib/std/os/bits/darwin.zig+14
......@@ -1178,3 +1178,17 @@ pub fn S_IWHT(m: u32) bool {
11781178 return m & S_IFMT == S_IFWHT;
11791179}
11801180pub const HOST_NAME_MAX = 72;
1181
1182pub const AT_FDCWD = -2;
1183
1184/// Use effective ids in access check
1185pub const AT_EACCESS = 0x0010;
1186
1187/// Act on the symlink itself not the target
1188pub const AT_SYMLINK_NOFOLLOW = 0x0020;
1189
1190/// Act on target of symlink
1191pub const AT_SYMLINK_FOLLOW = 0x0040;
1192
1193/// Path refers to directory
1194pub const AT_REMOVEDIR = 0x0080;