summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/select.2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/select.2')
-rw-r--r--lib/libc/sys/select.216
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/libc/sys/select.2 b/lib/libc/sys/select.2
index bacd76e..193c903 100644
--- a/lib/libc/sys/select.2
+++ b/lib/libc/sys/select.2
@@ -108,25 +108,33 @@ to the maximum number of descriptors supported by the system.
.Pp
If
.Fa timeout
-is a non-nil pointer, it specifies the maximum interval to wait for the
+is not a
+.Dv NULL
+pointer, it specifies the maximum interval to wait for the
selection to complete.
System activity can lengthen the interval by
an indeterminate amount.
.Pp
If
.Fa timeout
-is a nil pointer, the select blocks indefinitely.
+is a
+.Dv NULL
+pointer, the select blocks indefinitely.
.Pp
To effect a poll, the
.Fa timeout
-argument should be non-nil, pointing to a zero-valued timeval structure.
+argument should not be
+.Dv NULL ,
+but it should point to a zero-valued timeval structure.
.Pp
Any of
.Fa readfds ,
.Fa writefds ,
and
.Fa exceptfds
-may be given as nil pointers if no descriptors are of interest.
+may be given as
+.Dv NULL
+pointers if no descriptors are of interest.
.Sh RETURN VALUES
The
.Fn select
OpenPOWER on IntegriCloud