diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-08-19 22:16:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-08-19 22:16:40 +0000 |
commit | 97545fe4089995279b1270673dd8950368a985e5 (patch) | |
tree | f74952eaf9e150481cd140a9759a9264c8007d82 | |
parent | b66500e9fdff60a92e7e8fc10421c39c5da7f4a6 (diff) |
document what happens when pollfd.fd is -1
-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 |