File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2743,6 +2743,17 @@ fn test_freebsd(target: &str) {
2743
2743
// Added in FreeBSD 14.2
2744
2744
"SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
2745
2745
2746
+ // Added in FreeBSD 15
2747
+ "PROC_LOGSIGEXIT_CTL"
2748
+ | "PROC_LOGSIGEXIT_STATUS"
2749
+ | "PROC_LOGSIGEXIT_CTL_NOFORCE"
2750
+ | "PROC_LOGSIGEXIT_CTL_FORCE_ENABLE"
2751
+ | "PROC_LOGSIGEXIT_CTL_FORCE_DISABLE"
2752
+ if Some ( 15 ) > freebsd_ver =>
2753
+ {
2754
+ true
2755
+ }
2756
+
2746
2757
_ => false ,
2747
2758
}
2748
2759
} ) ;
Original file line number Diff line number Diff line change @@ -1047,6 +1047,12 @@ POSIX_SPAWN_SETSCHEDULER
1047
1047
POSIX_SPAWN_SETSIGDEF
1048
1048
POSIX_SPAWN_SETSIGMASK
1049
1049
PPPDISC
1050
+ PPROT_CLEAR
1051
+ PPROT_DESCEND
1052
+ PPROT_FLAGS
1053
+ PPROT_INHERIT
1054
+ PPROT_OP
1055
+ PPROT_SET
1050
1056
PROC_NO_NEW_PRIVS_CTL
1051
1057
PROC_NO_NEW_PRIVS_DISABLE
1052
1058
PROC_NO_NEW_PRIVS_ENABLE
Original file line number Diff line number Diff line change @@ -3011,6 +3011,11 @@ pub const PROC_NO_NEW_PRIVS_CTL: c_int = 19;
3011
3011
pub const PROC_NO_NEW_PRIVS_STATUS : c_int = 20 ;
3012
3012
pub const PROC_WXMAP_CTL : c_int = 21 ;
3013
3013
pub const PROC_WXMAP_STATUS : c_int = 22 ;
3014
+ pub const PROC_LOGSIGEXIT_CTL : c_int = 23 ;
3015
+ pub const PROC_LOGSIGEXIT_STATUS : c_int = 24 ;
3016
+ pub const PROC_LOGSIGEXIT_CTL_NOFORCE : c_int = 1 ;
3017
+ pub const PROC_LOGSIGEXIT_CTL_FORCE_ENABLE : c_int = 2 ;
3018
+ pub const PROC_LOGSIGEXIT_CTL_FORCE_DISABLE : c_int = 3 ;
3014
3019
pub const PROC_PROCCTL_MD_MIN : c_int = 0x10000000 ;
3015
3020
3016
3021
pub const PPROT_SET : c_int = 1 ;
@@ -4809,6 +4814,14 @@ safe_f! {
4809
4814
pub { const } fn PR_SCTP_VALID_POLICY ( x: c_int) -> bool {
4810
4815
PR_SCTP_POLICY ( x) <= SCTP_PR_SCTP_MAX
4811
4816
}
4817
+
4818
+ pub { const } fn PPROT_OP ( o: c_int) -> c_int {
4819
+ o & 0xf
4820
+ }
4821
+
4822
+ pub { const } fn PPROT_FLAGS ( o: c_int) -> c_int {
4823
+ o & !0xf
4824
+ }
4812
4825
}
4813
4826
4814
4827
cfg_if ! {
You can’t perform that action at this time.
0 commit comments