diff options
author | Val Packett <val@packett.cool> | 2023-02-19 18:34:52 -0300 |
---|---|---|
committer | Val Packett <val@packett.cool> | 2023-02-19 18:34:52 -0300 |
commit | cb1eabefb8418e864c3d67786546560f6c139dce (patch) | |
tree | d3201c0249e95e87695565d8c5c21ac55da05fa4 | |
parent | 89fb7bf0e6f0c3f7ea4ff7fe5a14a3909f9b9298 (diff) | |
download | rust-libc-cb1eabefb8418e864c3d67786546560f6c139dce.tar.gz |
FreeBSD: add AT_RESOLVE_BENEATH
-rw-r--r-- | libc-test/build.rs | 4 | ||||
-rw-r--r-- | libc-test/semver/freebsd.txt | 1 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index d05672a47e..26dbd99dea 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2074,8 +2074,8 @@ fn test_freebsd(target: &str) { // These constants were introduced in FreeBSD 13: "EFD_CLOEXEC" | "EFD_NONBLOCK" | "EFD_SEMAPHORE" if Some(13) > freebsd_ver => true, - // This constant was introduced in FreeBSD 12: - "O_RESOLVE_BENEATH" if Some(12) > freebsd_ver => true, + // These constants were introduced in FreeBSD 12: + "AT_RESOLVE_BENEATH" | "O_RESOLVE_BENEATH" if Some(12) > freebsd_ver => true, // These constants were introduced in FreeBSD 13: "O_DSYNC" | "O_PATH" | "O_EMPTY_PATH" | "AT_EMPTY_PATH" if Some(13) > freebsd_ver => { diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt index 33442a4b11..ba0a3c1fd6 100644 --- a/libc-test/semver/freebsd.txt +++ b/libc-test/semver/freebsd.txt @@ -100,6 +100,7 @@ AT_PHDR AT_PHENT AT_PHNUM AT_REMOVEDIR +AT_RESOLVE_BENEATH AT_SYMLINK_FOLLOW AT_SYMLINK_NOFOLLOW AT_UID diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index e69c32ad9e..b70a40f15d 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3737,6 +3737,7 @@ pub const AT_EACCESS: ::c_int = 0x100; pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x200; pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400; pub const AT_REMOVEDIR: ::c_int = 0x800; +pub const AT_RESOLVE_BENEATH: ::c_int = 0x2000; pub const AT_EMPTY_PATH: ::c_int = 0x4000; pub const AT_NULL: ::c_int = 0; |