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 @@ -2510,6 +2510,13 @@ fn test_freebsd(target: &str) {
2510
2510
true
2511
2511
}
2512
2512
2513
+ // Added in FreeBSD 14.1
2514
+ "KCMP_FILE" | "KCMP_FILEOBJ" | "KCMP_FILES" | "KCMP_SIGHAND" | "KCMP_VM"
2515
+ if Some ( 14 ) > freebsd_ver =>
2516
+ {
2517
+ true
2518
+ }
2519
+
2513
2520
// FIXME: Removed in FreeBSD 15:
2514
2521
"LOCAL_CONNWAIT" if freebsd_ver >= Some ( 15 ) => true ,
2515
2522
@@ -2626,6 +2633,9 @@ fn test_freebsd(target: &str) {
2626
2633
true
2627
2634
}
2628
2635
2636
+ // Those are introduced in FreeBSD 14.1.
2637
+ "kcmp" => true ,
2638
+
2629
2639
_ => false ,
2630
2640
}
2631
2641
} ) ;
Original file line number Diff line number Diff line change @@ -687,6 +687,11 @@ JAIL_SYS_DISABLE
687
687
JAIL_SYS_INHERIT
688
688
JAIL_SYS_NEW
689
689
JAIL_UPDATE
690
+ KCMP_FILE
691
+ KCMP_FILEOBJ
692
+ KCMP_FILES
693
+ KCMP_SIGHAND
694
+ KCMP_VM
690
695
KENV_GET
691
696
KENV_SET
692
697
KENV_UNSET
@@ -1974,6 +1979,7 @@ jail_get
1974
1979
jail_remove
1975
1980
jail_set
1976
1981
jrand48
1982
+ kcmp
1977
1983
kevent
1978
1984
key_t
1979
1985
killpg
Original file line number Diff line number Diff line change @@ -4923,6 +4923,12 @@ pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
4923
4923
pub const TFD_TIMER_ABSTIME : :: c_int = 0x01 ;
4924
4924
pub const TFD_TIMER_CANCEL_ON_SET : :: c_int = 0x02 ;
4925
4925
4926
+ pub const KCMP_FILE : :: c_int = 100 ;
4927
+ pub const KCMP_FILEOBJ : :: c_int = 101 ;
4928
+ pub const KCMP_FILES : :: c_int = 102 ;
4929
+ pub const KCMP_SIGHAND : :: c_int = 103 ;
4930
+ pub const KCMP_VM : :: c_int = 104 ;
4931
+
4926
4932
cfg_if ! {
4927
4933
if #[ cfg( libc_const_extern_fn) ] {
4928
4934
pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
@@ -5648,6 +5654,14 @@ extern "C" {
5648
5654
) -> :: c_int ;
5649
5655
pub fn closefrom ( lowfd : :: c_int ) ;
5650
5656
pub fn close_range ( lowfd : :: c_uint , highfd : :: c_uint , flags : :: c_int ) -> :: c_int ;
5657
+
5658
+ pub fn kcmp (
5659
+ pid1 : :: pid_t ,
5660
+ pid2 : :: pid_t ,
5661
+ type_ : :: c_int ,
5662
+ idx1 : :: c_ulong ,
5663
+ idx2 : :: c_ulong ,
5664
+ ) -> :: c_int ;
5651
5665
}
5652
5666
5653
5667
#[ link( name = "memstat" ) ]
You can’t perform that action at this time.
0 commit comments