Subject: Re: many kvm functions returns 0 on errors.
To: msaitoh <msaitoh@spa.is.uec.ac.jp>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 06/29/1998 11:01:12
On Tue, 30 Jun 1998 00:14:00 +0900
msaitoh <msaitoh@spa.is.uec.ac.jp> wrote:
> kvm_read(3) says:
>
> > RETURN VALUES
> > Upon success, the number of bytes actually transferred is returned. Oth-
> > erwise, -1 is returned.
>
> but libkvm.c::kvm_read() returns 0. PR5242 says this.
> The kvm_* manpages said that many kvm functions returns -1 on errors, but
> actually returns 0.
>
> Both OpenBSD and FreeBSD is the same as NetBSD. Is this correct behavior?
> I don't think so.
No, please go ahead and fix this :-)
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 650 428 6939