Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2001 23:52:00 +0100
From:      Emiel Kollof <coolvibe@hackerheaven.org>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: kvm_getswapinfo() not backwards compatible?
Message-ID:  <20011126235200.D546@laptop.hackerheaven.org>
In-Reply-To: <Pine.BSF.4.33.0111261307060.60419-100000@resnet.uoregon.edu>
References:  <20011126193305.C546@laptop.hackerheaven.org> <Pine.BSF.4.33.0111261307060.60419-100000@resnet.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Doug White (dwhite@resnet.uoregon.edu) wrote:
> >
> > 	kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open");
> 
> This looks wrong .... I think you want the first three arguments to be
> NULL, not "/dev/null".
> 
> /dev/null is not a kernel image. :-)

I could've sworn I saw it done like that in the sources for top(1), but
after checking again, you are right.

It seems to work though on CURRENT. Is it a feature? :-)

Cheers,
Emiel
-- 
When the government bureau's remedies don't match your problem, you
modify the problem, not the remedy.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011126235200.D546>