Subject: Re: many kvm functions returns 0 on errors.
To: None <tech-kern@NetBSD.ORG>
From: msaitoh <msaitoh@spa.is.uec.ac.jp>
List: tech-kern
Date: 06/30/1998 07:40:37
 >  > 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 :-)

 The fact is that only kvm_read() and kvm_write() is inconsistent.
I fixed these functions and commited.

----------------------------------------------------------
		SAITOH Masanobu (msaitoh@spa.is.uec.ac.jp)
		University of Electro-Communications