Skip to content

Commit a6773b8

Browse files
committed
Auto merge of #2302 - devnexen:obsd_kinfo_vmentry, r=JohnTitor
openbsd adding kinfo_vmentry
2 parents 36a6a8e + 399d798 commit a6773b8

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

libc-test/semver/openbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ iso_args
962962
kevent
963963
key_t
964964
killpg
965+
kinfo_vmentry
965966
kqueue
966967
labs
967968
lastlog

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

+17
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,23 @@ s! {
384384
pub dlpi_phdr: *const Elf_Phdr,
385385
pub dlpi_phnum: Elf_Half,
386386
}
387+
388+
// sys/sysctl.h
389+
pub struct kinfo_vmentry {
390+
pub kve_start: ::c_ulong,
391+
pub kve_end: ::c_ulong,
392+
pub kve_guard: ::c_ulong,
393+
pub kve_fspace: ::c_ulong,
394+
pub kve_fspace_augment: ::c_ulong,
395+
pub kve_offset: u64,
396+
pub kve_wired_count: ::c_int,
397+
pub kve_etype: ::c_int,
398+
pub kve_protection: ::c_int,
399+
pub kve_max_protection: ::c_int,
400+
pub kve_advice: ::c_int,
401+
pub kve_inheritance: ::c_int,
402+
pub kve_flags: u8,
403+
}
387404
}
388405

389406
impl siginfo_t {

0 commit comments

Comments
 (0)