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
|
.\" 2006-07-01, mtk, Added POLLRDHUP + various other wording and
|
||||||
.\" formatting changes.
|
.\" 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
|
.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
|
||||||
|
@ -52,9 +52,7 @@ to perform I/O.
|
||||||
|
|
||||||
The set of file descriptors to be monitored is specified in the
|
The set of file descriptors to be monitored is specified in the
|
||||||
.I fds
|
.I fds
|
||||||
argument, which is an array of
|
argument, which is an array of structures of the following form:
|
||||||
.I nfds
|
|
||||||
structures of the following form:
|
|
||||||
.in +4n
|
.in +4n
|
||||||
.nf
|
.nf
|
||||||
|
|
||||||
|
@ -63,9 +61,14 @@ struct pollfd {
|
||||||
short events; /* requested events */
|
short events; /* requested events */
|
||||||
short revents; /* returned events */
|
short revents; /* returned events */
|
||||||
};
|
};
|
||||||
|
|
||||||
.fi
|
|
||||||
.in
|
.in
|
||||||
|
.fi
|
||||||
|
.PP
|
||||||
|
The caller should specify the number of items in the
|
||||||
|
.I fds
|
||||||
|
array in
|
||||||
|
.IR nfds .
|
||||||
|
|
||||||
The field
|
The field
|
||||||
.I fd
|
.I fd
|
||||||
contains a file descriptor for an open file.
|
contains a file descriptor for an open file.
|
||||||
|
|
Loading…
Reference in New Issue