summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-03-02 21:17:00 +0000
committermillert <millert@openbsd.org>2015-03-02 21:17:00 +0000
commit92bf4310373b9ce45e30628fb82da7ca824829b1 (patch)
tree458bc087b02d4eb1c4b91ca47273f973aeba0f65 /lib/libc
parentDocument out-of-band data on a socket as an example of an exceptional (diff)
downloadwireguard-openbsd-92bf4310373b9ce45e30628fb82da7ca824829b1.tar.xz
wireguard-openbsd-92bf4310373b9ce45e30628fb82da7ca824829b1.zip
Document that POLLPRI and POLLRDBAND are set for out-of-band socket
data.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/poll.217
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2
index 8474abb66cb..3281653563b 100644
--- a/lib/libc/sys/poll.2
+++ b/lib/libc/sys/poll.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: poll.2,v 1.29 2015/02/05 02:33:09 schwarze Exp $
+.\" $OpenBSD: poll.2,v 1.30 2015/03/02 21:17:00 millert Exp $
.\"
.\" Copyright (c) 1994 Jason R. Thorpe
.\" All rights reserved.
@@ -28,7 +28,7 @@
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\"
-.Dd $Mdocdate: February 5 2015 $
+.Dd $Mdocdate: March 2 2015 $
.Dt POLL 2
.Os
.Sh NAME
@@ -174,6 +174,14 @@ member.
.Pp
The significance and semantics of normal, priority, and high-priority
data are device-specific.
+For example, on
+.Ox ,
+the
+.Dv POLLPRI
+and
+.Dv POLLRDBAND
+flags may be used to detect when out-of-band socket data may be read
+without blocking.
.Pp
In addition to I/O multiplexing,
.Fn poll
@@ -354,6 +362,11 @@ As a result, the
and
.Dv POLLRDNORM
flags are equivalent.
+Similarly, the
+.Dv POLLPRI
+and
+.Dv POLLRDBAND
+flags are also equivalent.
.Pp
Internally to the kernel,
.Fn poll