diff --git a/man2/poll.2 b/man2/poll.2 index f0db04a3e..9828738ab 100644 --- a/man2/poll.2 +++ b/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.