summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-03-02 21:17:01 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-03-02 21:17:01 +0000
commit1d23fdb41b0a345ce97c82fc71480cfc3ee68e4e (patch)
tree6bcbbdf0b650df9cd18dee3e7d5b91466fdf5e42 /lib/libc
parent017a3b07bf7632a365c046da53e5c250f9a6e5a8 (diff)
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