From a9d802a64d3407325930af13170cf26938f90c33 Mon Sep 17 00:00:00 2001 From: billf Date: Tue, 29 Jun 1999 16:32:22 +0000 Subject: Clarify what happens if fd is set to -1 Submitted by: Alfred Perlstein --- lib/libc/sys/poll.2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 0ebcb74..1f5248b 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,5 +1,5 @@ .\" $NetBSD: poll.2,v 1.3 1996/09/07 21:53:08 mycroft Exp $ -.\" $Id: poll.2,v 1.1 1997/09/14 05:44:35 peter Exp $ +.\" $Id: poll.2,v 1.2 1998/06/04 21:05:45 steve Exp $ .\" .\" Copyright (c) 1996 Charles M. Hannum. All rights reserved. .\" @@ -65,7 +65,9 @@ The fields of are as follows: .Bl -tag -width XXXrevents .It fd -File descriptor to poll. +File descriptor to poll. If fd is equal to -1 then +.Fa revents +is cleared (set to zero), and that pollfd is not checked. .It events Events to poll for. (See below.) .It revents -- cgit v1.1