Skip to content

Commit b8b5e8b

Browse files
committed
freebsd kcmp call support.
1 parent acc7bb1 commit b8b5e8b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

libc-test/semver/freebsd.txt

+6
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,11 @@ JAIL_SYS_DISABLE
686686
JAIL_SYS_INHERIT
687687
JAIL_SYS_NEW
688688
JAIL_UPDATE
689+
KCMP_FILE
690+
KCMP_FILEOBJ
691+
KCMP_FILES
692+
KCMP_SIGHAND
693+
KCMP_VM
689694
KENV_GET
690695
KENV_SET
691696
KENV_UNSET
@@ -1972,6 +1977,7 @@ jail_get
19721977
jail_remove
19731978
jail_set
19741979
jrand48
1980+
kcmp
19751981
kevent
19761982
key_t
19771983
killpg

src/unix/bsd/freebsdlike/freebsd/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -4803,6 +4803,12 @@ pub const TFD_CLOEXEC: ::c_int = O_CLOEXEC;
48034803
pub const TFD_TIMER_ABSTIME: ::c_int = 0x01;
48044804
pub const TFD_TIMER_CANCEL_ON_SET: ::c_int = 0x02;
48054805

4806+
pub const KCMP_FILE: ::c_int = 100;
4807+
pub const KCMP_FILEOBJ: ::c_int = 101;
4808+
pub const KCMP_FILES: ::c_int = 102;
4809+
pub const KCMP_SIGHAND: ::c_int = 103;
4810+
pub const KCMP_VM: ::c_int = 104;
4811+
48064812
pub const fn MAP_ALIGNED(a: ::c_int) -> ::c_int {
48074813
a << 24
48084814
}
@@ -5522,6 +5528,14 @@ extern "C" {
55225528
) -> ::c_int;
55235529
pub fn closefrom(lowfd: ::c_int);
55245530
pub fn close_range(lowfd: ::c_uint, highfd: ::c_uint, flags: ::c_int) -> ::c_int;
5531+
5532+
pub fn kcmp(
5533+
pid1: ::pid_t,
5534+
pid2: ::pid_t,
5535+
type_: ::c_int,
5536+
idx1: ::c_ulong,
5537+
idx2: ::c_ulong,
5538+
) -> ::c_int;
55255539
}
55265540

55275541
#[link(name = "memstat")]

0 commit comments

Comments
 (0)