mirror of https://github.com/mkerrisk/man-pages
poll.2: Fix description of ENOMEM error
No file descriptors are being allocated... Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
836efc18d7
commit
8bcfd68889
18
man2/poll.2
18
man2/poll.2
|
@ -343,15 +343,19 @@ is specified as NULL, then
|
|||
.BR ppoll ()
|
||||
can block indefinitely.
|
||||
.SH RETURN VALUE
|
||||
On success, a positive number is returned; this is
|
||||
the number of structures which have nonzero
|
||||
On success,
|
||||
.BR poll ()
|
||||
returns a nonnegative value which is the number of elements in the
|
||||
.I pollfds
|
||||
whose
|
||||
.I revents
|
||||
fields (in other words, those descriptors with events or errors reported).
|
||||
A value of 0 indicates that the call timed out and no file
|
||||
descriptors were ready.
|
||||
fields have been set to a nonzero value (indicating an event or an error).
|
||||
A return value of zero indicates that the system call timed out
|
||||
before any file descriptors became read.
|
||||
.PP
|
||||
On error, \-1 is returned, and
|
||||
.I errno
|
||||
is set appropriately.
|
||||
is set to indicate the cause of the error.
|
||||
.SH ERRORS
|
||||
.TP
|
||||
.B EFAULT
|
||||
|
@ -376,7 +380,7 @@ The timeout value expressed in
|
|||
is invalid (negative).
|
||||
.TP
|
||||
.B ENOMEM
|
||||
There was no space to allocate file descriptor tables.
|
||||
Unable to allocate memory for kernel data structures.
|
||||
.SH VERSIONS
|
||||
The
|
||||
.BR poll ()
|
||||
|
|
Loading…
Reference in New Issue