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 @@ -2408,6 +2408,13 @@ fn test_freebsd(target: &str) {
2408
2408
true
2409
2409
}
2410
2410
2411
+ // Added in FreeBSD 14.1
2412
+ "KCMP_FILE" | "KCMP_FILEOBJ" | "KCMP_FILES" | "KCMP_SIGHAND" | "KCMP_VM"
2413
+ if Some ( 14 ) > freebsd_ver =>
2414
+ {
2415
+ true
2416
+ }
2417
+
2411
2418
// FIXME: Removed in FreeBSD 15:
2412
2419
"LOCAL_CONNWAIT" => true ,
2413
2420
@@ -2521,6 +2528,9 @@ fn test_freebsd(target: &str) {
2521
2528
true
2522
2529
}
2523
2530
2531
+ // Those are introduced in FreeBSD 14.1.
2532
+ "kcmp" => true ,
2533
+
2524
2534
_ => false ,
2525
2535
}
2526
2536
} ) ;
Original file line number Diff line number Diff line change @@ -686,6 +686,11 @@ JAIL_SYS_DISABLE
686
686
JAIL_SYS_INHERIT
687
687
JAIL_SYS_NEW
688
688
JAIL_UPDATE
689
+ KCMP_FILE
690
+ KCMP_FILEOBJ
691
+ KCMP_FILES
692
+ KCMP_SIGHAND
693
+ KCMP_VM
689
694
KENV_GET
690
695
KENV_SET
691
696
KENV_UNSET
@@ -1972,6 +1977,7 @@ jail_get
1972
1977
jail_remove
1973
1978
jail_set
1974
1979
jrand48
1980
+ kcmp
1975
1981
kevent
1976
1982
key_t
1977
1983
killpg
Original file line number Diff line number Diff line change @@ -4801,6 +4801,12 @@ pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
4801
4801
pub const TFD_TIMER_ABSTIME : :: c_int = 0x01 ;
4802
4802
pub const TFD_TIMER_CANCEL_ON_SET : :: c_int = 0x02 ;
4803
4803
4804
+ pub const KCMP_FILE : :: c_int = 100 ;
4805
+ pub const KCMP_FILEOBJ : :: c_int = 101 ;
4806
+ pub const KCMP_FILES : :: c_int = 102 ;
4807
+ pub const KCMP_SIGHAND : :: c_int = 103 ;
4808
+ pub const KCMP_VM : :: c_int = 104 ;
4809
+
4804
4810
pub const fn MAP_ALIGNED ( a : :: c_int ) -> :: c_int {
4805
4811
a << 24
4806
4812
}
@@ -5520,6 +5526,14 @@ extern "C" {
5520
5526
) -> :: c_int ;
5521
5527
pub fn closefrom ( lowfd : :: c_int ) ;
5522
5528
pub fn close_range ( lowfd : :: c_uint , highfd : :: c_uint , flags : :: c_int ) -> :: c_int ;
5529
+
5530
+ pub fn kcmp (
5531
+ pid1 : :: pid_t ,
5532
+ pid2 : :: pid_t ,
5533
+ type_ : :: c_int ,
5534
+ idx1 : :: c_ulong ,
5535
+ idx2 : :: c_ulong ,
5536
+ ) -> :: c_int ;
5523
5537
}
5524
5538
5525
5539
#[ link( name = "memstat" ) ]
You can’t perform that action at this time.
0 commit comments