From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Yeoh Subject: Re: [PATCH] process_vm_{read,write}v(3): initial man pages Date: Wed, 21 Mar 2012 14:43:37 +1030 Message-ID: <20120321144337.600bf79e@Gantu> References: <1331358148-17235-1-git-send-email-vapier@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Mike Frysinger , linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Tue, 20 Mar 2012 19:30:29 +1300 "Michael Kerrisk (man-pages)" wrote: > And another question about a different part of the page: > > > +.SH "RETURN VALUE" > > +On success, > > +.BR process_vm_readv () > > +returns the number of bytes read while > > +.BR process_vm_writev () > > +returns the number of bytes written. > > + > > +On error, the number of bytes read or written is returned, or -1 is > > +returned if it was unable to read/write any bytes; in either case, > > +.I errno > > +is set appropriately. > > Is that last piece really true? On error, how does the syscall return > number of bytes read or written *and* set errno? Sorry the original was badly written on my part. On error, one of two things will happen: - number of bytes read or written returned if a partial read/write occurred OR - -1 returned and errno set appropriately Regards, Chris -- cyeoh-hXjcm30GF6XQT0dZR+AlfA@public.gmane.org -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html