File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2741,6 +2741,9 @@ fn test_freebsd(target: &str) {
2741
2741
// Added in FreeBSD 14.2
2742
2742
"SO_SPLICE" if Some ( 14 ) > freebsd_ver => true ,
2743
2743
2744
+ // Added in FreeBSD 15
2745
+ "PROC_LOGSIGEXIT_CTL" | "PROC_LOGSIGEXIT_STATUS" if Some ( 15 ) > freebsd_ver => true ,
2746
+
2744
2747
_ => false ,
2745
2748
}
2746
2749
} ) ;
Original file line number Diff line number Diff line change @@ -1046,6 +1046,12 @@ POSIX_SPAWN_SETSCHEDPARAM
1046
1046
POSIX_SPAWN_SETSCHEDULER
1047
1047
POSIX_SPAWN_SETSIGDEF
1048
1048
POSIX_SPAWN_SETSIGMASK
1049
+ PPROC_CLEAR
1050
+ PPROC_DESCEND
1051
+ PPROC_FLAGS
1052
+ PPROC_INHERIT
1053
+ PPROC_OP
1054
+ PPROC_SET
1049
1055
PPPDISC
1050
1056
PROC_NO_NEW_PRIVS_CTL
1051
1057
PROC_NO_NEW_PRIVS_DISABLE
Original file line number Diff line number Diff line change @@ -3012,6 +3012,8 @@ 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
3014
pub const PROC_PROCCTL_MD_MIN : c_int = 0x10000000 ;
3015
+ pub const PROC_LOGSIGEXIT_CTL : c_int = 23 ;
3016
+ pub const PROC_LOGSIGEXIT_STATUS : c_int = 24 ;
3015
3017
3016
3018
pub const PPROT_SET : c_int = 1 ;
3017
3019
pub const PPROT_CLEAR : c_int = 2 ;
@@ -4788,6 +4790,14 @@ safe_f! {
4788
4790
pub { const } fn PR_SCTP_VALID_POLICY ( x: c_int) -> bool {
4789
4791
PR_SCTP_POLICY ( x) <= SCTP_PR_SCTP_MAX
4790
4792
}
4793
+
4794
+ pub { const } fn PPROT_OP ( o: c_int) -> c_int {
4795
+ o & 0xf
4796
+ }
4797
+
4798
+ pub { const } fn PPROT_FLAGS ( o: c_int) -> c_int {
4799
+ o & !0xf
4800
+ }
4791
4801
}
4792
4802
4793
4803
cfg_if ! {
You can’t perform that action at this time.
0 commit comments