authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 10:50:09-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-07-31 10:50:09-07:00
log88b4ee172f4a1822811c265613336c6bc5a2c435
treeadb06b6572694537582c4a5993415cc7b890bfeb
parent95e2605d30c15963c4d6bc9e39751031b0f52007

Revert "std.c: few freebsd's kinfo api fixes."

This reverts commit d07149c56d202c3503c4f5505e8b003b3e161145.

1 files changed, 25 insertions(+), 25 deletions(-)

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