summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man3/sigwait.3
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /upstream/opensuse-tumbleweed/man3/sigwait.3
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz
manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man3/sigwait.3')
-rw-r--r--upstream/opensuse-tumbleweed/man3/sigwait.320
1 files changed, 12 insertions, 8 deletions
diff --git a/upstream/opensuse-tumbleweed/man3/sigwait.3 b/upstream/opensuse-tumbleweed/man3/sigwait.3
index 38250ec9..f79c917a 100644
--- a/upstream/opensuse-tumbleweed/man3/sigwait.3
+++ b/upstream/opensuse-tumbleweed/man3/sigwait.3
@@ -4,7 +4,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH sigwait 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH sigwait 3 2024-05-02 "Linux man-pages (unreleased)"
.SH NAME
sigwait \- wait for a signal
.SH LIBRARY
@@ -13,15 +13,15 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.PP
+.P
.BI "int sigwait(const sigset_t *restrict " set ", int *restrict " sig );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR sigwait ():
.nf
Since glibc 2.26:
@@ -36,11 +36,14 @@ function suspends execution of the calling thread until
one of the signals specified in the signal set
.I set
becomes pending.
+For a signal to become pending,
+it must first be blocked with
+.BR sigprocmask (2).
The function accepts the signal
(removes it from the pending list of signals),
and returns the signal number in
.IR sig .
-.PP
+.P
The operation of
.BR sigwait ()
is the same as
@@ -78,12 +81,13 @@ T{
.BR sigwait ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH VERSIONS
.BR sigwait ()
is implemented using
-.BR sigtimedwait (2).
-.PP
+.BR sigtimedwait (2);
+consult its
+.BR NOTES .
+.P
The glibc implementation of
.BR sigwait ()
silently ignores attempts to wait for the two real-time signals that