aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-07-02 19:39:24 +0000
committerWarner Losh <imp@FreeBSD.org>2022-07-02 19:41:46 +0000
commitef86876b846e523e7ccc2940c37db4279db95d05 (patch)
tree4c6f7ea9988fd330a8449324a49eb28fda1a2c61
parentcf72911158d6fdff2ee524ee62a670d1d2282204 (diff)
downloadsrc-ef86876b846e523e7ccc2940c37db4279db95d05.tar.gz
src-ef86876b846e523e7ccc2940c37db4279db95d05.zip
pselect(2): Document what a null pointer for the signalmask means
When pselect is passed a null pointer for the signal mask, the standard says it shall behave like select (except for the different timeout arg). Make a note of that here. Sponsored by: Netflix
-rw-r--r--lib/libc/sys/pselect.211
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libc/sys/pselect.2 b/lib/libc/sys/pselect.2
index 6221c473e7d7..c8104b936319 100644
--- a/lib/libc/sys/pselect.2
+++ b/lib/libc/sys/pselect.2
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 16, 2013
+.Dd July 2, 2022
.Dt PSELECT 2
.Os
.Sh NAME
@@ -66,7 +66,7 @@ argument in
.Fn pselect
points to a
.Vt "const struct timespec"
-rather than the (modifiable)
+rather than the potentially modifiable
.Vt "struct timeval"
used by
.Fn select ;
@@ -81,6 +81,13 @@ specifies a signal mask which is set while waiting for input.
When
.Fn pselect
returns, the original signal mask is restored.
+If
+.Fa newsigmask
+is a null pointer,
+.Fn pselect
+behaves like
+.Fn select
+with no setting or restoration of the signal mask.
.Pp
See
.Xr select 2