Browse Source

update return values for ibuf_write and msgbuf_write

ok gilles@
OPENBSD_5_2
jmatthew 12 years ago
parent
commit
15d163326b
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/lib/libutil/imsg_init.3

+ 4
- 4
src/lib/libutil/imsg_init.3 View File

@ -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


Loading…
Cancel
Save