authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 20:16:52-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-21 20:50:47-04:00
log9a82f00a4fb897acf50446a725768c3aaa562513
tree3d154fa5e967be977a26f35b08e9359517b4c778
parent5917572e59ff68e33ae7fb0ec7b8d592e2915463
signaturelock-open Commit is signed but in an unrecognized format.

add freebsd AT_* bits


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

lib/std/os/bits/freebsd.zig+20
...@@ -939,3 +939,23 @@ pub fn S_IWHT(m: u32) bool {...@@ -939,3 +939,23 @@ pub fn S_IWHT(m: u32) bool {
939}939}
940940
941pub const HOST_NAME_MAX = 255;941pub const HOST_NAME_MAX = 255;
942
943/// Magic value that specify the use of the current working directory
944/// to determine the target of relative file paths in the openat() and
945/// similar syscalls.
946pub const AT_FDCWD = -100;
947
948/// Check access using effective user and group ID
949pub const AT_EACCESS = 0x0100;
950
951/// Do not follow symbolic links
952pub const AT_SYMLINK_NOFOLLOW = 0x0200;
953
954/// Follow symbolic link
955pub const AT_SYMLINK_FOLLOW = 0x0400;
956
957/// Remove directory instead of file
958pub const AT_REMOVEDIR = 0x0800;
959
960/// Fail if not under dirfd
961pub const AT_BENEATH = 0x1000;