From e9e58745c35db60fc74c0f849458bcad5e111207 Mon Sep 17 00:00:00 2001 From: Jonathan Matthew Date: Fri, 15 Jun 2012 23:44:44 +0000 Subject: update return values for ibuf_write and msgbuf_write ok gilles@ --- lib/libutil/imsg_init.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libutil/imsg_init.3 b/lib/libutil/imsg_init.3 index b832d4764f0..a98470e8b65 100644 --- a/lib/libutil/imsg_init.3 +++ b/lib/libutil/imsg_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: imsg_init.3,v 1.5 2011/06/23 22:07:14 sthen Exp $ +.\" $OpenBSD: imsg_init.3,v 1.6 2012/06/15 23:44:43 jmatthew Exp $ .\" .\" Copyright (c) 2010 Nicholas Marriott .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 23 2011 $ +.Dd $Mdocdate: June 15 2012 $ .Dt IMSG_INIT 3 .Os .Sh NAME @@ -393,7 +393,7 @@ routine transmits as many pending buffers as possible from .Fn msgbuf using .Xr writev 2 . -It returns 0 if it succeeds, \-1 on error and \-2 when an EOF condition on the +It returns 1 if it succeeds, \-1 on error and 0 when an EOF condition on the socket is detected. .Pp .Fn ibuf_free @@ -421,7 +421,7 @@ routine calls .Xr sendmsg 2 to transmit buffers queued in .Fa msgbuf . -It returns 0 if it succeeds, \-1 on error, or \-2 when an EOF condition on the +It returns 1 if it succeeds, \-1 on error, and 0 when an EOF condition on the socket is detected. .Pp .Fn msgbuf_drain -- cgit v1.2.3