commit ac7be71d8e668f46ccb7639103b55631a37149d2 (tree)
parent 6d7c6f4da7a1bdcd2c2527cccb9c1a4423439012
Author: Andrew Kelley <andrew@ziglang.org>
Date: Mon, 31 Jul 2023 11:05:38 -0700
Revert "std.c: add freebsd's kinfo_vmobject"
This reverts commit 52606572309f843c043123c1f2771829e45b4b5d.
Diffstat:
1 file changed, 0 insertions(+), 25 deletions(-)
diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig
@@ -64,8 +64,6 @@ pub extern "c" fn getpid() pid_t;
pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file;
pub extern "c" fn kinfo_getvmmap(pid: pid_t, cntp: *c_int) ?[*]kinfo_vmentry;
pub extern "c" fn kinfo_getproc(pid: pid_t) ?[*]kinfo_proc;
-pub extern "c" fn kinfo_getvmobject(cntp: *c_int) ?[*]kinfo_vmobject;
-pub extern "c" fn kinfo_getswapvmobject(cntp: *c_int) ?[*]kinfo_vmobject;
pub extern "c" fn cpuset_getaffinity(level: cpulevel_t, which: cpuwhich_t, id: id_t, setsize: usize, mask: *cpuset_t) c_int;
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 {
assert(@sizeOf(kinfo_proc) == KINFO_PROC_SIZE);
}
-pub const kinfo_vmobject = extern struct {
- structsize: c_int,
- tpe: c_int,
- size: u64,
- vn_fileid: u64,
- vn_fsid_freebsd11: u32,
- ref_count: c_int,
- shadow_count: c_int,
- memattr: c_int,
- resident: u64,
- active: u64,
- inactive: u64,
- type_spec: extern union {
- _vn_fsid: u64,
- _backing_obj: u64,
- },
- me: u64,
- _qspare: [6]u64,
- swapped: u32,
- _ispare: [7]u32,
- path: [PATH_MAX]u8,
-};
-
pub const CTL = struct {
pub const KERN = 1;
pub const DEBUG = 5;