Instead of using libutil's kinfo_getproc(), call sysctl() ourselves
using a stack-allocated buffer.
In addition to avoiding a heap allocation, this also avoids a second
call to sysctl() - kinfo_getproc() appears to have copied a bit too much
from kinfo_getallproc() and uses the dynamic-sized-sysctl pattern with a
size it already knows.
Instead of using libutil's kinfo_getproc(), call sysctl() ourselves using a stack-allocated buffer.
In addition to avoiding a heap allocation, this also avoids a second call to sysctl() - kinfo_getproc() appears to have copied a bit too much from kinfo_getallproc() and uses the dynamic-sized-sysctl pattern with a size it already knows.