summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-11-21 06:59:00 +0000
committerdlg <dlg@openbsd.org>2014-11-21 06:59:00 +0000
commit91e0f66c9b277a0c754ffe9ce74ba5dc1d45146e (patch)
tree8e675007f6a977c0736e765459a4b55e42656b6f
parentRemove the README. It history from more than 20 years ago, and while (diff)
downloadwireguard-openbsd-91e0f66c9b277a0c754ffe9ce74ba5dc1d45146e.tar.xz
wireguard-openbsd-91e0f66c9b277a0c754ffe9ce74ba5dc1d45146e.zip
evbuffer_read will return 0 one an end of file condition.
-rw-r--r--lib/libevent/evbuffer_new.35
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libevent/evbuffer_new.3 b/lib/libevent/evbuffer_new.3
index b17ad2c696d..209d1257500 100644
--- a/lib/libevent/evbuffer_new.3
+++ b/lib/libevent/evbuffer_new.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: evbuffer_new.3,v 1.11 2014/11/20 13:39:13 jmc Exp $
+.\" $OpenBSD: evbuffer_new.3,v 1.12 2014/11/21 06:59:00 dlg Exp $
.\"
.\" Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 20 2014 $
+.Dd $Mdocdate: November 21 2014 $
.Dt EVBUFFER_NEW 3
.Os
.Sh NAME
@@ -237,6 +237,7 @@ to indicate the failure.
.Pp
.Fn evbuffer_read
returns the number of bytes appended to the evbuffer on success,
+0 on an end of file condition,
or -1 on failure and sets
.Va errno
to indicate the failure.