summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2012-06-15 23:44:44 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2012-06-15 23:44:44 +0000
commite9e58745c35db60fc74c0f849458bcad5e111207 (patch)
tree888d864567b429b060b97313dda62922144e26b7 /lib
parent2523715546eebb7c25cd1d9e2271a41b60a7e69e (diff)
update return values for ibuf_write and msgbuf_write
ok gilles@
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/imsg_init.38
1 files changed, 4 insertions, 4 deletions
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 <nicm@openbsd.org>
.\"
@@ -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