| ... | @@ -94,7 +94,7 @@ pub extern "c" fn getpid() pid_t; | ... | @@ -94,7 +94,7 @@ pub extern "c" fn getpid() pid_t; |
| 94 | | 94 | |
| 95 | pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file; | 95 | pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file; |
| 96 | pub extern "c" fn kinfo_getvmmap(pid: pid_t, cntp: *c_int) ?[*]kinfo_vmentry; | 96 | pub extern "c" fn kinfo_getvmmap(pid: pid_t, cntp: *c_int) ?[*]kinfo_vmentry; |
| 97 | pub extern "c" fn kinfo_getproc(pid: pid_t) ?[*]kinfo_proc; | 97 | pub extern "c" fn kinfo_getproc(pid: pid_t) ?*kinfo_proc; |
| 98 | pub extern "c" fn kinfo_getvmobject(cntp: *c_int) ?[*]kinfo_vmobject; | 98 | pub extern "c" fn kinfo_getvmobject(cntp: *c_int) ?[*]kinfo_vmobject; |
| 99 | pub extern "c" fn kinfo_getswapvmobject(cntp: *c_int) ?[*]kinfo_vmobject; | 99 | pub extern "c" fn kinfo_getswapvmobject(cntp: *c_int) ?[*]kinfo_vmobject; |
| 100 | | 100 | |
| ... | @@ -676,31 +676,31 @@ comptime { | ... | @@ -676,31 +676,31 @@ comptime { |
| 676 | } | 676 | } |
| 677 | | 677 | |
| 678 | pub const kinfo_vmentry = extern struct { | 678 | pub const kinfo_vmentry = extern struct { |
| 679 | kve_structsize: c_int, | 679 | structsize: c_int, |
| 680 | kve_type: c_int, | 680 | type: c_int, |
| 681 | kve_start: u64, | 681 | start: u64, |
| 682 | kve_end: u64, | 682 | end: u64, |
| 683 | kve_offset: u64, | 683 | offset: u64, |
| 684 | kve_vn_fileid: u64, | 684 | vn_fileid: u64, |
| 685 | kve_vn_fsid_freebsd11: u32, | 685 | vn_fsid_freebsd11: u32, |
| 686 | kve_flags: c_int, | 686 | flags: c_int, |
| 687 | kve_resident: c_int, | 687 | resident: c_int, |
| 688 | kve_private_resident: c_int, | 688 | private_resident: c_int, |
| 689 | kve_protection: c_int, | 689 | protection: c_int, |
| 690 | kve_ref_count: c_int, | 690 | ref_count: c_int, |
| 691 | kve_shadow_count: c_int, | 691 | shadow_count: c_int, |
| 692 | kve_vn_type: c_int, | 692 | vn_type: c_int, |
| 693 | kve_vn_size: u64, | 693 | vn_size: u64, |
| 694 | kve_vn_rdev_freebsd11: u32, | 694 | vn_rdev_freebsd11: u32, |
| 695 | kve_vn_mode: u16, | 695 | vn_mode: u16, |
| 696 | kve_status: u16, | 696 | status: u16, |
| 697 | kve_type_spec: extern union { | 697 | type_spec: extern union { |
| 698 | _kve_vn_fsid: u64, | 698 | _vn_fsid: u64, |
| 699 | _kve_obj: u64, | 699 | _obj: u64, |
| 700 | }, | 700 | }, |
| 701 | kve_vn_rdev: u64, | 701 | vn_rdev: u64, |
| 702 | _kve_ispare: [8]c_int, | 702 | _ispare: [8]c_int, |
| 703 | kve_rpath: [PATH_MAX]u8, | 703 | rpath: [PATH_MAX]u8, |
| 704 | }; | 704 | }; |
| 705 | | 705 | |
| 706 | pub const KINFO_VMENTRY_SIZE = 1160; | 706 | pub const KINFO_VMENTRY_SIZE = 1160; |