From 15d163326b99f5bb457f78b14e7a5baa70a8ee55 Mon Sep 17 00:00:00 2001 From: jmatthew <> Date: Fri, 15 Jun 2012 23:44:43 +0000 Subject: [PATCH] update return values for ibuf_write and msgbuf_write ok gilles@ --- src/lib/libutil/imsg_init.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/libutil/imsg_init.3 b/src/lib/libutil/imsg_init.3 index b832d476..a98470e8 100644 --- a/src/lib/libutil/imsg_init.3 +++ b/src/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