select_tut.2: RETURN VALUE: defer to select(2)

Defer to select(2), rather than repeating the information
in this page.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-02-18 10:10:01 +01:00
parent c9a275a703
commit 82cf8e8850
1 changed files with 2 additions and 17 deletions

View File

@ -316,23 +316,8 @@ then the sets must be reinitialized before each call.
.\" way to sleep the process with subsecond precision by using the timeout.
.\" (See further on.)
.SH RETURN VALUE
On success,
.BR select ()
returns the total number of file descriptors
still present in the file descriptor sets.
.PP
If
.BR select ()
timed out, then the return value will be zero.
The file descriptors set should be all
empty (but may not be on some systems).
.PP
A return value of \-1 indicates an error, with \fIerrno\fP being
set appropriately.
In the case of an error, the contents of the returned sets and
the \fIstruct timeout\fP contents are undefined and should not be used.
.BR pselect ()
however never modifies \fIntimeout\fP.
See
.BR select (2).
.SH NOTES
Generally speaking,
all operating systems that support sockets also support