summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-08-19 22:16:39 +0000
committerderaadt <deraadt@openbsd.org>2003-08-19 22:16:39 +0000
commit5786fc64fd03c5dbc4d4939a4b90d5ebef0ec004 (patch)
tree146d4f80f49bc4bc4eb37b6cc8b8d7c6035b3dfe /lib
parentvery hairy modifications for dynamic fd_set handling. dynamic rpc fd_set's (diff)
downloadwireguard-openbsd-5786fc64fd03c5dbc4d4939a4b90d5ebef0ec004.tar.xz
wireguard-openbsd-5786fc64fd03c5dbc4d4939a4b90d5ebef0ec004.zip
document what happens when pollfd.fd is -1
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/poll.211
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2
index 71a6ee661f9..268e1e7e0ce 100644
--- a/lib/libc/sys/poll.2
+++ b/lib/libc/sys/poll.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: poll.2,v 1.14 2003/04/25 22:14:19 tedu Exp $
+.\" $OpenBSD: poll.2,v 1.15 2003/08/19 22:16:39 deraadt Exp $
.\"
.\" Copyright (c) 1994 Jason R. Thorpe
.\" All rights reserved.
@@ -60,6 +60,15 @@ struct pollfd {
The
.Pa fd
member is an open file descriptor.
+If
+.Pa fd
+is -1,
+the
+.Nm pollfd
+structure is considered unused, and
+.Pa revents
+will be cleared.
+.Pp
The
.Pa events
and