File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -2074,6 +2074,12 @@ fn test_freebsd(target: &str) {
2074
2074
// These constants were introduced in FreeBSD 13:
2075
2075
"EFD_CLOEXEC" | "EFD_NONBLOCK" | "EFD_SEMAPHORE" if Some ( 13 ) > freebsd_ver => true ,
2076
2076
2077
+ // This constant was introduced in FreeBSD 12:
2078
+ "O_RESOLVE_BENEATH" if Some ( 12 ) > freebsd_ver => true ,
2079
+
2080
+ // These constants were introduced in FreeBSD 13:
2081
+ "O_DSYNC" | "O_PATH" | "O_EMPTY_PATH" if Some ( 13 ) > freebsd_ver => true ,
2082
+
2077
2083
// FIXME: These are deprecated - remove in a couple of releases.
2078
2084
// These constants were removed in FreeBSD 11 (svn r273250) but will
2079
2085
// still be accepted and ignored at runtime.
Original file line number Diff line number Diff line change @@ -819,14 +819,20 @@ ONOEOT
819
819
OXTABS
820
820
O_ASYNC
821
821
O_DIRECT
822
+ O_DSYNC
823
+ O_EMPTY_PATH
822
824
O_EXEC
823
825
O_EXLOCK
824
826
O_FSYNC
825
827
O_NDELAY
826
828
O_NOCTTY
829
+ O_PATH
830
+ O_RESOLVE_BENEATH
831
+ O_SEARCH
827
832
O_SHLOCK
828
833
O_SYNC
829
834
O_TTY_INIT
835
+ O_VERIFY
830
836
PD_ALLOWED_AT_FORK
831
837
PD_CLOEXEC
832
838
PD_DAEMON
Original file line number Diff line number Diff line change @@ -2461,8 +2461,14 @@ pub const SF_USER_READAHEAD: ::c_int = 0x00000008;
2461
2461
pub const SF_NOCACHE : :: c_int = 0x00000010 ;
2462
2462
pub const O_CLOEXEC : :: c_int = 0x00100000 ;
2463
2463
pub const O_DIRECTORY : :: c_int = 0x00020000 ;
2464
+ pub const O_DSYNC : :: c_int = 0x01000000 ;
2465
+ pub const O_EMPTY_PATH : :: c_int = 0x02000000 ;
2464
2466
pub const O_EXEC : :: c_int = 0x00040000 ;
2467
+ pub const O_PATH : :: c_int = 0x00400000 ;
2468
+ pub const O_RESOLVE_BENEATH : :: c_int = 0x00800000 ;
2469
+ pub const O_SEARCH : :: c_int = O_EXEC ;
2465
2470
pub const O_TTY_INIT : :: c_int = 0x00080000 ;
2471
+ pub const O_VERIFY : :: c_int = 0x00200000 ;
2466
2472
pub const F_GETLK : :: c_int = 11 ;
2467
2473
pub const F_SETLK : :: c_int = 12 ;
2468
2474
pub const F_SETLKW : :: c_int = 13 ;
You can’t perform that action at this time.
0 commit comments