Skip to content

Commit cb1eabe

Browse files
committed
FreeBSD: add AT_RESOLVE_BENEATH
1 parent 89fb7bf commit cb1eabe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

libc-test/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,8 +2074,8 @@ fn test_freebsd(target: &str) {
20742074
// These constants were introduced in FreeBSD 13:
20752075
"EFD_CLOEXEC" | "EFD_NONBLOCK" | "EFD_SEMAPHORE" if Some(13) > freebsd_ver => true,
20762076

2077-
// This constant was introduced in FreeBSD 12:
2078-
"O_RESOLVE_BENEATH" if Some(12) > freebsd_ver => true,
2077+
// These constants were introduced in FreeBSD 12:
2078+
"AT_RESOLVE_BENEATH" | "O_RESOLVE_BENEATH" if Some(12) > freebsd_ver => true,
20792079

20802080
// These constants were introduced in FreeBSD 13:
20812081
"O_DSYNC" | "O_PATH" | "O_EMPTY_PATH" | "AT_EMPTY_PATH" if Some(13) > freebsd_ver => {

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ AT_PHDR
100100
AT_PHENT
101101
AT_PHNUM
102102
AT_REMOVEDIR
103+
AT_RESOLVE_BENEATH
103104
AT_SYMLINK_FOLLOW
104105
AT_SYMLINK_NOFOLLOW
105106
AT_UID

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,6 +3737,7 @@ pub const AT_EACCESS: ::c_int = 0x100;
37373737
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x200;
37383738
pub const AT_SYMLINK_FOLLOW: ::c_int = 0x400;
37393739
pub const AT_REMOVEDIR: ::c_int = 0x800;
3740+
pub const AT_RESOLVE_BENEATH: ::c_int = 0x2000;
37403741
pub const AT_EMPTY_PATH: ::c_int = 0x4000;
37413742

37423743
pub const AT_NULL: ::c_int = 0;

0 commit comments

Comments
 (0)