diff options
author | 2003-08-19 22:16:39 +0000 | |
---|---|---|
committer | 2003-08-19 22:16:39 +0000 | |
commit | 5786fc64fd03c5dbc4d4939a4b90d5ebef0ec004 (patch) | |
tree | 146d4f80f49bc4bc4eb37b6cc8b8d7c6035b3dfe /lib | |
parent | very hairy modifications for dynamic fd_set handling. dynamic rpc fd_set's (diff) | |
download | wireguard-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.2 | 11 |
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 |