commit 9a82f00a4fb897acf50446a725768c3aaa562513 (tree) parent 5917572e59ff68e33ae7fb0ec7b8d592e2915463 Author: Andrew Kelley <andrew@ziglang.org> Date: Mon, 21 Oct 2019 20:16:52 -0400 add freebsd AT_* bits Diffstat:
| M | lib/std/os/bits/freebsd.zig | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/lib/std/os/bits/freebsd.zig b/lib/std/os/bits/freebsd.zig @@ -939,3 +939,23 @@ pub fn S_IWHT(m: u32) bool { } pub const HOST_NAME_MAX = 255; + +/// Magic value that specify the use of the current working directory +/// to determine the target of relative file paths in the openat() and +/// similar syscalls. +pub const AT_FDCWD = -100; + +/// Check access using effective user and group ID +pub const AT_EACCESS = 0x0100; + +/// Do not follow symbolic links +pub const AT_SYMLINK_NOFOLLOW = 0x0200; + +/// Follow symbolic link +pub const AT_SYMLINK_FOLLOW = 0x0400; + +/// Remove directory instead of file +pub const AT_REMOVEDIR = 0x0800; + +/// Fail if not under dirfd +pub const AT_BENEATH = 0x1000;