From 99c70ec24ffb3d542565f38f1c8457c3c51ce9aa Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 11:24:14 -0700 Subject: [PATCH] Revert "std: add kinfo_vmentry for FreeBSD" This reverts commit 4a0508e56c06456c367c57a7565b9f757f2ff663. --- lib/std/c/freebsd.zig | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index ee19f2faa9..b24d221b4e 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -24,7 +24,6 @@ pub extern "c" fn malloc_usable_size(?*const anyopaque) usize; 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 const sf_hdtr = extern struct { headers: [*]const iovec_const, @@ -566,40 +565,6 @@ comptime { std.debug.assert(@alignOf(kinfo_file) == @sizeOf(u64)); } -pub const kinfo_vmentry = extern struct { - kve_structsize: c_int, - kve_type: c_int, - kve_start: u64, - kve_end: u64, - kve_offset: u64, - kve_vn_fileid: u64, - kve_vn_fsid_freebsd11: u32, - kve_flags: c_int, - kve_resident: c_int, - kve_private_resident: c_int, - kve_protection: c_int, - kve_ref_count: c_int, - kve_shadow_count: c_int, - kve_vn_type: c_int, - kve_vn_size: u64, - kve_vn_rdev_freebsd11: u32, - kve_vn_mode: u16, - kve_status: u16, - kve_type_spec: extern union { - _kve_vn_fsid: u64, - _kve_obj: u64, - }, - kve_vn_rdev: u64, - _kve_ispare: [8]c_int, - kve_rpath: [PATH_MAX]u8, -}; - -pub const KINFO_VMENTRY_SIZE = 1160; - -comptime { - std.debug.assert(@sizeOf(kinfo_vmentry) == KINFO_VMENTRY_SIZE); -} - pub const CTL = struct { pub const KERN = 1; pub const DEBUG = 5;