mirror of https://github.com/mkerrisk/man-pages
poll.2: Document negative value in 'fd' field
Reported-by: Michael Welsh Duggan <mwd@cert.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ef30129360
commit
096ca08af4
13
man2/poll.2
13
man2/poll.2
|
@ -28,7 +28,7 @@
|
||||||
.\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and
|
.\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and
|
||||||
.\" formatting changes.
|
.\" formatting changes.
|
||||||
.\"
|
.\"
|
||||||
.TH POLL 2 2010-09-20 "Linux" "Linux Programmer's Manual"
|
.TH POLL 2 2012-04-15 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
poll, ppoll \- wait for some event on a file descriptor
|
poll, ppoll \- wait for some event on a file descriptor
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -72,6 +72,17 @@ array in
|
||||||
The field
|
The field
|
||||||
.I fd
|
.I fd
|
||||||
contains a file descriptor for an open file.
|
contains a file descriptor for an open file.
|
||||||
|
If this field is negative, then the corresponding
|
||||||
|
.I events
|
||||||
|
field is ignored and the
|
||||||
|
.I revents
|
||||||
|
field returns zero.
|
||||||
|
(This provides an easy way of ignoring a
|
||||||
|
file descriptor for a single
|
||||||
|
.BR poll ()
|
||||||
|
call: simply negate the
|
||||||
|
.I fd
|
||||||
|
field.)
|
||||||
|
|
||||||
The field
|
The field
|
||||||
.I events
|
.I events
|
||||||
|
|
Loading…
Reference in New Issue