OSDN Git Service

(split) LDP: Update draft and release pages (based on the previous commit)
[linuxjm/LDP_man-pages.git] / draft / man3 / sigwait.3
1 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH SIGWAIT 3 2012\-07\-21 Linux "Linux Programmer's Manual"
32 .SH 名前
33 sigwait \- シグナルを待つ
34 .SH 書式
35 .nf
36 \fB#include <signal.h>\fP
37
38 \fB int sigwait(const sigset_t *\fP\fIset\fP\fB, int *\fP\fIsig\fP\fB);\fP
39 .fi
40 .sp
41 .in -4n
42 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
43 .in
44 .sp
45 .ad l
46 \fBsigwait\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
47 .ad b
48 .SH 説明
49 \fBsigwait\fP()  関数は、シグナル集合 \fIset\fP で指定されたシグナルの一つが処理待ち (pending) になるまで、
50 呼び出したスレッドの実行を中断する。 この関数はそのシグナルを受け取り (つまり、処理待ちのシグナルのリスト
51 からそのシグナルを削除し)、そのシグナル番号を \fIsig\fP に格納して返す。
52
53 \fBsigwait\fP()  の動作は \fBsigwaitinfo\fP(2)  と同じだが、以下の点が異なる。
54 .IP * 2
55 \fBsigwait\fP()  は、シグナルの内容を表す \fIsiginfo_t\fP 構造体を返すのではなく、単にシグナル番号を返す。
56 .IP *
57 返り値が \fBsigwaitinfo\fP(2)  とは異なる。
58 .SH 返り値
59 成功すると、 \fBsigwait\fP()  は 0 を返す。 エラーの場合、(「エラー」の節のリストにある) 正のエラー番号を返す。
60 .SH エラー
61 .TP 
62 \fBEINVAL\fP
63 .\" Does not occur for glibc.
64 \fIset\fP に無効なシグナル番号が入っている。
65 .SH 準拠
66 POSIX.1\-2001.
67 .SH 注意
68 \fBsigwait\fP()  は \fBsigtimedwait\fP(2)  を使って実装されている。
69 .SH 例
70 \fBpthread_sigmask\fP(3)  を参照。
71 .SH 関連項目
72 \fBsigaction\fP(2), \fBsignalfd\fP(2), \fBsigpending\fP(2), \fBsigsuspend\fP(2),
73 \fBsigwaitinfo\fP(2), \fBsigsetops\fP(3), \fBsignal\fP(7)
74 .SH この文書について
75 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
76 である。プロジェクトの説明とバグ報告に関する情報は
77 http://www.kernel.org/doc/man\-pages/ に書かれている。