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) {
27432743 // Added in FreeBSD 14.2
27442744 "SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
27452745
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+
27462757 _ => false ,
27472758 }
27482759 } ) ;
Original file line number Diff line number Diff line change @@ -1047,6 +1047,12 @@ POSIX_SPAWN_SETSCHEDULER
10471047POSIX_SPAWN_SETSIGDEF
10481048POSIX_SPAWN_SETSIGMASK
10491049PPPDISC
1050+ PPROT_CLEAR
1051+ PPROT_DESCEND
1052+ PPROT_FLAGS
1053+ PPROT_INHERIT
1054+ PPROT_OP
1055+ PPROT_SET
10501056PROC_NO_NEW_PRIVS_CTL
10511057PROC_NO_NEW_PRIVS_DISABLE
10521058PROC_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;
30113011pub const PROC_NO_NEW_PRIVS_STATUS : c_int = 20 ;
30123012pub const PROC_WXMAP_CTL : c_int = 21 ;
30133013pub 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 ;
30143019pub const PROC_PROCCTL_MD_MIN : c_int = 0x10000000 ;
30153020
30163021pub const PPROT_SET : c_int = 1 ;
@@ -4809,6 +4814,14 @@ safe_f! {
48094814 pub { const } fn PR_SCTP_VALID_POLICY ( x: c_int) -> bool {
48104815 PR_SCTP_POLICY ( x) <= SCTP_PR_SCTP_MAX
48114816 }
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+ }
48124825}
48134826
48144827cfg_if ! {
You can’t perform that action at this time.
0 commit comments