From 13ed138b675005f9dbc672f24180dfe59c198e6f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 30 Jul 2015 13:24:12 +0200 Subject: [PATCH] io_getevents.2: Clarify details of return value for timeout-expired case Signed-off-by: Michael Kerrisk --- man2/io_getevents.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/man2/io_getevents.2 b/man2/io_getevents.2 index e8e945a65..e3ccf1e0e 100644 --- a/man2/io_getevents.2 +++ b/man2/io_getevents.2 @@ -51,8 +51,13 @@ events have been obtained. .SH RETURN VALUE On success, .BR io_getevents () -returns the number of events read: 0 if no events are -available, or less than \fImin_nr\fP if the \fItimeout\fP has elapsed. +returns the number of events read. +This may be 0, or a value less than +.IR min_nr , +if the +.I timeout +expired. + For the failure return, see NOTES. .SH ERRORS .TP