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, NULL, O_RDONLY,
> "kvm_open failed");

Both of these calls completed successfully when executed as root, as does
my own code.  This code also has the same behavior on -CURRENT as 4.1.1-STABLE.
I'm not sure what I was observing last week.

Interestingly, I discovered that by replacing NULL as an argument to
kvm_open with "/dev/null" (a prompt I took from top in -CURRENT) this
code works for users other than root.  I don't understand what the difference
in semantics between using /dev/null as a exec/core/swap file and using
a NULL pointer is, but the former seems to work.

Thanks,
-- 
Chris Wicklein <[EMAIL PROTECTED]>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: syslogd: Too many '/' in "/dev//console"

2001-09-03 Thread Chris Wicklein


On Monday, September 3, 2001, at 03:42 PM, [EMAIL PROTECTED] wrote:

> Between last weekend and this weekend, something changed in syslogd 
> seems to have resulted in this boot-time error.  The syslogd.c deltas 
> from 1.82 -> 1.83 look suspect since the handling of relevant variables 
> has changed.
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
>

Sorry for the double post -- to reproduce this problem it's necessary to 
run syslogd with the -s switch -- either no -s or -s -s fails to 
generate this error.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message