summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-21 12:04:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-10-21 12:04:19 +0000
commitea1a0710393b0bb179025a1a499ec84b0adfbe68 (patch)
tree046959f8025f51c4f7bab7a793a3057ae409660b
parent9b4de08982245b9360c6dd535e82cf9268bed2a9 (diff)
bufferevent_write() return code misdocumented; ok jmc
-rw-r--r--lib/libevent/event.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libevent/event.3 b/lib/libevent/event.3
index 5f12de595a3..9bee9740f54 100644
--- a/lib/libevent/event.3
+++ b/lib/libevent/event.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: event.3,v 1.26 2006/03/23 10:51:27 jmc Exp $
+.\" $OpenBSD: event.3,v 1.27 2006/10/21 12:04:18 deraadt Exp $
.\"
.\" Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -504,10 +504,12 @@ The
function can be used to write data to the file descriptor.
The data is appended to the output buffer and written to the descriptor
automatically as it becomes available for writing.
+.Fn bufferevent_write
+returns 0 on success or \-1 on failure.
The
.Fn bufferevent_read
-function is used to read data from the input buffer.
-Both functions return the amount of data written or read.
+function is used to read data from the input buffer,
+returning the amount of data read.
.Pp
If multiple bases are in use, bufferevent_base_set() must be called before
enabling the bufferevent for the first time.