Skip to content

Commit 757ba8b

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

File tree

1 file changed

+14
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+14
-0
lines changed

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)