File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2078,7 +2078,9 @@ fn test_freebsd(target: &str) {
2078
2078
"O_RESOLVE_BENEATH" if Some ( 12 ) > freebsd_ver => true ,
2079
2079
2080
2080
// These constants were introduced in FreeBSD 13:
2081
- "O_DSYNC" | "O_PATH" | "O_EMPTY_PATH" if Some ( 13 ) > freebsd_ver => true ,
2081
+ "O_DSYNC" | "O_PATH" | "O_EMPTY_PATH" | "AT_EMPTY_PATH" if Some ( 13 ) > freebsd_ver => {
2082
+ true
2083
+ }
2082
2084
2083
2085
// FIXME: These are deprecated - remove in a couple of releases.
2084
2086
// These constants were removed in FreeBSD 11 (svn r273250) but will
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ ATF_USETRAILERS
86
86
AT_BASE
87
87
AT_EACCESS
88
88
AT_EGID
89
+ AT_EMPTY_PATH
89
90
AT_ENTRY
90
91
AT_EUID
91
92
AT_EXECPATH
@@ -2109,6 +2110,7 @@ stack_t
2109
2110
statfs
2110
2111
strcasecmp
2111
2112
strcasestr
2113
+ strchrnul
2112
2114
strncasecmp
2113
2115
strndup
2114
2116
strsignal
Original file line number Diff line number Diff line change @@ -3737,6 +3737,7 @@ pub const AT_EACCESS: ::c_int = 0x100;
3737
3737
pub const AT_SYMLINK_NOFOLLOW : :: c_int = 0x200 ;
3738
3738
pub const AT_SYMLINK_FOLLOW : :: c_int = 0x400 ;
3739
3739
pub const AT_REMOVEDIR : :: c_int = 0x800 ;
3740
+ pub const AT_EMPTY_PATH : :: c_int = 0x4000 ;
3740
3741
3741
3742
pub const AT_NULL : :: c_int = 0 ;
3742
3743
pub const AT_IGNORE : :: c_int = 1 ;
@@ -5249,6 +5250,8 @@ extern "C" {
5249
5250
rmtp : * mut :: timespec ,
5250
5251
) -> :: c_int ;
5251
5252
5253
+ pub fn strchrnul ( s : * const :: c_char , c : :: c_int ) -> * mut :: c_char ;
5254
+
5252
5255
pub fn shm_create_largepage (
5253
5256
path : * const :: c_char ,
5254
5257
flags : :: c_int ,
You can’t perform that action at this time.
0 commit comments