1 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2 .\" <mtk.manpages@gmail.com>
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" Japanese Version Copyright (c) 2008 Akihiro MOTOKI
25 .\" all rights reserved.
26 .\" Translated 2008-08-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.04
28 .TH SIGWAIT 3 2010-09-10 "Linux" "Linux Programmer's Manual"
31 .\"O sigwait \- wait for a signal
36 .B #include <signal.h>
38 .BI " int sigwait(const sigset_t *" set ", int *" sig );
42 .\"O Feature Test Macro Requirements for glibc (see
43 .\"O .BR feature_test_macros (7)):
45 .RB ( feature_test_macros (7)
51 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
57 .\"O function suspends execution of the calling thread until the
58 .\"O delivery of one of the signals specified in the signal set
60 .\"O The function accepts the signal
61 .\"O (removes it from the pending list of signals),
62 .\"O and returns the signal number in
67 で指定されたシグナルの一つが配送されるまで、
69 この関数はそのシグナルを受け取り (つまり、処理待ちのシグナルのリスト
70 からそのシグナルを削除し)、そのシグナル番号を
77 .\"O .BR sigwaitinfo (2),
85 .\"O only returns the signal number, rather than a
87 .\"O structure describing the signal.
91 構造体を返すのではなく、単にシグナル番号を返す。
93 .\"O The return values of the two functions are different.
102 .\"O On error, it returns a positive error number (listed in ERRORS).
106 エラーの場合、(「エラー」の節のリストにある) 正のエラー番号を返す。
111 .\" Does not occur for glibc.
113 .\"O contains an invalid signal number.
116 .\"O .SH CONFORMING TO
122 .\"O is implemented using
123 .\"O .BR sigtimedwait (2).
131 .\"O .BR pthread_sigmask (3).
132 .BR pthread_sigmask (3)