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 @@ -2510,6 +2510,13 @@ fn test_freebsd(target: &str) {
25102510 true
25112511 }
25122512
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+
25132520 // FIXME: Removed in FreeBSD 15:
25142521 "LOCAL_CONNWAIT" if freebsd_ver >= Some ( 15 ) => true ,
25152522
@@ -2626,6 +2633,9 @@ fn test_freebsd(target: &str) {
26262633 true
26272634 }
26282635
2636+ // Those are introduced in FreeBSD 14.1.
2637+ "kcmp" => true ,
2638+
26292639 _ => false ,
26302640 }
26312641 } ) ;
Original file line number Diff line number Diff line change @@ -687,6 +687,11 @@ JAIL_SYS_DISABLE
687687JAIL_SYS_INHERIT
688688JAIL_SYS_NEW
689689JAIL_UPDATE
690+ KCMP_FILE
691+ KCMP_FILEOBJ
692+ KCMP_FILES
693+ KCMP_SIGHAND
694+ KCMP_VM
690695KENV_GET
691696KENV_SET
692697KENV_UNSET
@@ -1974,6 +1979,7 @@ jail_get
19741979jail_remove
19751980jail_set
19761981jrand48
1982+ kcmp
19771983kevent
19781984key_t
19791985killpg
Original file line number Diff line number Diff line change @@ -4923,6 +4923,12 @@ pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
49234923pub const TFD_TIMER_ABSTIME : :: c_int = 0x01 ;
49244924pub const TFD_TIMER_CANCEL_ON_SET : :: c_int = 0x02 ;
49254925
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+
49264932cfg_if ! {
49274933 if #[ cfg( libc_const_extern_fn) ] {
49284934 pub const fn MAP_ALIGNED ( a: :: c_int) -> :: c_int {
@@ -5648,6 +5654,14 @@ extern "C" {
56485654 ) -> :: c_int ;
56495655 pub fn closefrom ( lowfd : :: c_int ) ;
56505656 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 ;
56515665}
56525666
56535667#[ link( name = "memstat" ) ]
You can’t perform that action at this time.
0 commit comments