Re: problems with libkvm and sysctl

2001-09-15 Thread Chris Wicklein
On Wed, Sep 12, 2001 at 11:25:28AM +0800, Trent Nelson wrote: On Sun, Sep 09, 2001 at 11:23:34AM -0500, [EMAIL PROTECTED] wrote: What do you get when you run the attached program as root? kd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, errbuf); kd2 = kvm_open(NULL, NULL,

problems with libkvm and sysctl

2001-09-09 Thread chrisw
CONTEXT: I'm writing a clone of pgrep(1) (part of Solaris) for FreeBSD 5.0-CURRENT. Similar to FreeBSD's killall, pgrep matches a pattern against either the executable associated with each process or each process's command line arguments. I have tried using both sysctl and kvm to do this