File tree 3 files changed +30
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2596,6 +2596,13 @@ fn test_freebsd(target: &str) {
2596
2596
true
2597
2597
}
2598
2598
2599
+ // Added in FreeBSD 14.1
2600
+ "KCMP_FILE" | "KCMP_FILEOBJ" | "KCMP_FILES" | "KCMP_SIGHAND" | "KCMP_VM"
2601
+ if Some ( 14 ) > freebsd_ver =>
2602
+ {
2603
+ true
2604
+ }
2605
+
2599
2606
// FIXME: Removed in FreeBSD 15:
2600
2607
"LOCAL_CONNWAIT" if freebsd_ver >= Some ( 15 ) => true ,
2601
2608
@@ -2716,6 +2723,9 @@ fn test_freebsd(target: &str) {
2716
2723
true
2717
2724
}
2718
2725
2726
+ // Those are introduced in FreeBSD 14.1.
2727
+ "kcmp" => true ,
2728
+
2719
2729
_ => false ,
2720
2730
}
2721
2731
} ) ;
Original file line number Diff line number Diff line change @@ -689,6 +689,11 @@ JAIL_SYS_DISABLE
689
689
JAIL_SYS_INHERIT
690
690
JAIL_SYS_NEW
691
691
JAIL_UPDATE
692
+ KCMP_FILE
693
+ KCMP_FILEOBJ
694
+ KCMP_FILES
695
+ KCMP_SIGHAND
696
+ KCMP_VM
692
697
KENV_DUMP
693
698
KENV_DUMP_LOADER
694
699
KENV_DUMP_STATIC
@@ -2007,6 +2012,7 @@ jail_get
2007
2012
jail_remove
2008
2013
jail_set
2009
2014
jrand48
2015
+ kcmp
2010
2016
kevent
2011
2017
key_t
2012
2018
killpg
Original file line number Diff line number Diff line change @@ -4902,6 +4902,12 @@ pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 0x02;
4902
4902
4903
4903
pub const CLOSE_RANGE_CLOEXEC : :: c_uint = 1 << 2 ;
4904
4904
4905
+ pub const KCMP_FILE : :: c_int = 100 ;
4906
+ pub const KCMP_FILEOBJ : :: c_int = 101 ;
4907
+ pub const KCMP_FILES : :: c_int = 102 ;
4908
+ pub const KCMP_SIGHAND : :: c_int = 103 ;
4909
+ pub const KCMP_VM : :: c_int = 104 ;
4910
+
4905
4911
pub const fn MAP_ALIGNED ( a : :: c_int ) -> :: c_int {
4906
4912
a << 24
4907
4913
}
@@ -5625,6 +5631,14 @@ extern "C" {
5625
5631
argv : * const * const :: c_char ,
5626
5632
envp : * const * const :: c_char ,
5627
5633
) -> :: c_int ;
5634
+
5635
+ pub fn kcmp (
5636
+ pid1 : :: pid_t ,
5637
+ pid2 : :: pid_t ,
5638
+ type_ : :: c_int ,
5639
+ idx1 : :: c_ulong ,
5640
+ idx2 : :: c_ulong ,
5641
+ ) -> :: c_int ;
5628
5642
}
5629
5643
5630
5644
#[ link( name = "memstat" ) ]
You can’t perform that action at this time.
0 commit comments