mirror of https://github.com/mkerrisk/man-pages
poll.2: Clarify wording describing of 'nfds' argument.
reported by: rui rlex <rui.rlex@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
52520fb570
commit
d8dfbff93f
15
man2/poll.2
15
man2/poll.2
|
@ -28,7 +28,7 @@
|
|||
.\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and
|
||||
.\" formatting changes.
|
||||
.\"
|
||||
.TH POLL 2 2009-06-02 "Linux" "Linux Programmer's Manual"
|
||||
.TH POLL 2 2009-09-15 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
poll, ppoll \- wait for some event on a file descriptor
|
||||
.SH SYNOPSIS
|
||||
|
@ -52,9 +52,7 @@ to perform I/O.
|
|||
|
||||
The set of file descriptors to be monitored is specified in the
|
||||
.I fds
|
||||
argument, which is an array of
|
||||
.I nfds
|
||||
structures of the following form:
|
||||
argument, which is an array of structures of the following form:
|
||||
.in +4n
|
||||
.nf
|
||||
|
||||
|
@ -63,9 +61,14 @@ struct pollfd {
|
|||
short events; /* requested events */
|
||||
short revents; /* returned events */
|
||||
};
|
||||
|
||||
.fi
|
||||
.in
|
||||
.fi
|
||||
.PP
|
||||
The caller should specify the number of items in the
|
||||
.I fds
|
||||
array in
|
||||
.IR nfds .
|
||||
|
||||
The field
|
||||
.I fd
|
||||
contains a file descriptor for an open file.
|
||||
|
|
Loading…
Reference in New Issue