Skip to content

Commit e0cb075

Browse files
committed
netbsd kinfo_getvmmap addition
1 parent 880d294 commit e0cb075

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,8 @@ ipc_perm
11461146
kevent
11471147
key_t
11481148
killpg
1149+
kinfo_vmentry
1150+
kinfo_getvmmap
11491151
kqueue
11501152
kqueue1
11511153
labs

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,29 @@ s! {
468468
pub struct sched_param {
469469
pub sched_priority: ::c_int,
470470
}
471+
472+
pub struct kinfo_vmentry {
473+
pub kve_start: u64,
474+
pub kve_end: u64,
475+
pub kve_offset: u64,
476+
pub kve_type: u32,
477+
pub kve_flags: u32,
478+
pub kve_count: u32,
479+
pub kve_wired_count: u32,
480+
pub kve_advice: u32,
481+
pub kve_attributes: u32,
482+
pub kve_protection: u32,
483+
pub kve_max_protection: u32,
484+
pub kve_ref_count: u32,
485+
pub kve_inheritance: u32,
486+
pub kve_vn_fileid: u64,
487+
pub kve_vn_size: u64,
488+
pub kve_vn_fsid: u64,
489+
pub kve_vn_rdev: u64,
490+
pub kve_vn_type: u32,
491+
pub kve_vn_mode: u32,
492+
pub kve_path: [[::c_char; 32]; 32],
493+
}
471494
}
472495

473496
s_no_extra_traits! {
@@ -2298,6 +2321,8 @@ extern "C" {
22982321
pub fn login(ut: *const utmp);
22992322
pub fn logout(line: *const ::c_char);
23002323
pub fn logwtmp(line: *const ::c_char, name: *const ::c_char, host: *const ::c_char);
2324+
2325+
pub fn kinfo_getvmmap(pid: ::pid_t, cntp: *mut ::size_t) -> *mut kinfo_vmentry;
23012326
}
23022327

23032328
cfg_if! {

0 commit comments

Comments
 (0)