On Fri, Sep 10, 2021 at 08:12:58AM -0600, Theo de Raadt wrote: > > for Rust programs. It should even be free as Rust libc crate doesn't > > have `struct kinfo_proc` definition. I can't comment on Go side. > > The structure has nothing to do with libc! > > So why would it occur there?
Because Rust libc is where Rust developers puts all the OS stuff. The `struct kinfo_vmentry' or `struct kinfo_proc` on FreeBSD is defined in Rust libc crate for example. https://github.com/rust-lang/libc/blob/master/src/unix/bsd/freebsdlike/freebsd/mod.rs#L173 -- Sebastien Marie