summaryrefslogtreecommitdiff
path: root/share/man/man4
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-06-23 21:19:53 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-06-23 21:19:53 +0000
commitfa2261ebf766d8bd8e6c837ea0d41fff40ea61d3 (patch)
treef4f93373be7433a7db6800ff18347ed19bdbbd0b /share/man/man4
parente9f4866a9884cf092c904981de098ac60d474c4e (diff)
better wording of FIONBIO behaviour;
work done by Otto Moerbeek.
Diffstat (limited to 'share/man/man4')
-rw-r--r--share/man/man4/bpf.49
1 files changed, 5 insertions, 4 deletions
diff --git a/share/man/man4/bpf.4 b/share/man/man4/bpf.4
index 2aa846163cc..b519251a151 100644
--- a/share/man/man4/bpf.4
+++ b/share/man/man4/bpf.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bpf.4,v 1.16 2003/06/20 20:55:16 jmc Exp $
+.\" $OpenBSD: bpf.4,v 1.17 2003/06/23 21:19:52 jmc Exp $
.\" $NetBSD: bpf.4,v 1.7 1995/09/27 18:31:50 thorpej Exp $
.\"
.\" Copyright (c) 1990 The Regents of the University of California.
@@ -292,9 +292,10 @@ Returns the number of bytes that are immediately available for reading.
Returns the address associated with the interface.
.It Dv FIONBIO Pf ( Li int Ns No )
Set or clear non-blocking I/O.
-If the argument is non-zero, then doing a read while no data is available will
-return 0.
-If the argument is zero, non-blocking I/O is disabled.
+If the argument is non-zero, enable non-blocking I/O.
+If the argument is zero, disable non-blocking I/O.
+If non-blocking I/O is enabled, the return value of a read while no data
+is available will be 0.
The non-blocking read behavior is different from performing non-blocking
reads on other file descriptors, which will return \-1 and set
.Va errno