| ... | @@ -64,8 +64,6 @@ pub extern "c" fn getpid() pid_t; | ... | @@ -64,8 +64,6 @@ pub extern "c" fn getpid() pid_t; |
| 64 | pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file; | 64 | pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file; |
| 65 | pub extern "c" fn kinfo_getvmmap(pid: pid_t, cntp: *c_int) ?[*]kinfo_vmentry; | 65 | pub extern "c" fn kinfo_getvmmap(pid: pid_t, cntp: *c_int) ?[*]kinfo_vmentry; |
| 66 | pub extern "c" fn kinfo_getproc(pid: pid_t) ?[*]kinfo_proc; | 66 | pub extern "c" fn kinfo_getproc(pid: pid_t) ?[*]kinfo_proc; |
| 67 | pub extern "c" fn kinfo_getvmobject(cntp: *c_int) ?[*]kinfo_vmobject; | | |
| 68 | pub extern "c" fn kinfo_getswapvmobject(cntp: *c_int) ?[*]kinfo_vmobject; | | |
| 69 | | 67 | |
| 70 | pub extern "c" fn cpuset_getaffinity(level: cpulevel_t, which: cpuwhich_t, id: id_t, setsize: usize, mask: *cpuset_t) c_int; | 68 | pub extern "c" fn cpuset_getaffinity(level: cpulevel_t, which: cpuwhich_t, id: id_t, setsize: usize, mask: *cpuset_t) c_int; |
| 71 | pub extern "c" fn cpuset_setaffinity(level: cpulevel_t, which: cpuwhich_t, id: id_t, setsize: usize, mask: *const cpuset_t) c_int; | 69 | pub extern "c" fn cpuset_setaffinity(level: cpulevel_t, which: cpuwhich_t, id: id_t, setsize: usize, mask: *const cpuset_t) c_int; |
| ... | @@ -863,29 +861,6 @@ comptime { | ... | @@ -863,29 +861,6 @@ comptime { |
| 863 | assert(@sizeOf(kinfo_proc) == KINFO_PROC_SIZE); | 861 | assert(@sizeOf(kinfo_proc) == KINFO_PROC_SIZE); |
| 864 | } | 862 | } |
| 865 | | 863 | |
| 866 | pub const kinfo_vmobject = extern struct { | | |
| 867 | structsize: c_int, | | |
| 868 | tpe: c_int, | | |
| 869 | size: u64, | | |
| 870 | vn_fileid: u64, | | |
| 871 | vn_fsid_freebsd11: u32, | | |
| 872 | ref_count: c_int, | | |
| 873 | shadow_count: c_int, | | |
| 874 | memattr: c_int, | | |
| 875 | resident: u64, | | |
| 876 | active: u64, | | |
| 877 | inactive: u64, | | |
| 878 | type_spec: extern union { | | |
| 879 | _vn_fsid: u64, | | |
| 880 | _backing_obj: u64, | | |
| 881 | }, | | |
| 882 | me: u64, | | |
| 883 | _qspare: [6]u64, | | |
| 884 | swapped: u32, | | |
| 885 | _ispare: [7]u32, | | |
| 886 | path: [PATH_MAX]u8, | | |
| 887 | }; | | |
| 888 | | | |
| 889 | pub const CTL = struct { | 864 | pub const CTL = struct { |
| 890 | pub const KERN = 1; | 865 | pub const KERN = 1; |
| 891 | pub const DEBUG = 5; | 866 | pub const DEBUG = 5; |