OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / 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 The \fBsigwait\fP()  function suspends execution of the calling thread until
50 one of the signals specified in the signal set \fIset\fP becomes pending.  The
51 function accepts the signal (removes it from the pending list of signals),
52 and returns the signal number in \fIsig\fP.
53
54 \fBsigwait\fP()  の動作は \fBsigwaitinfo\fP(2)  と同じだが、以下の点が異なる。
55 .IP * 2
56 \fBsigwait\fP()  は、シグナルの内容を表す \fIsiginfo_t\fP 構造体を返すのではなく、単にシグナル番号を返す。
57 .IP *
58 返り値が \fBsigwaitinfo\fP(2)  とは異なる。
59 .SH 返り値
60 成功すると、 \fBsigwait\fP()  は 0 を返す。 エラーの場合、(「エラー」の節のリストにある) 正のエラー番号を返す。
61 .SH エラー
62 .TP 
63 \fBEINVAL\fP
64 .\" Does not occur for glibc.
65 \fIset\fP に無効なシグナル番号が入っている。
66 .SH 準拠
67 POSIX.1\-2001.
68 .SH 注意
69 \fBsigwait\fP()  は \fBsigtimedwait\fP(2)  を使って実装されている。
70 .SH 例
71 \fBpthread_sigmask\fP(3)  を参照。
72 .SH 関連項目
73 \fBsigaction\fP(2), \fBsignalfd\fP(2), \fBsigpending\fP(2), \fBsigsuspend\fP(2),
74 \fBsigwaitinfo\fP(2), \fBsigsetops\fP(3), \fBsignal\fP(7)
75 .SH この文書について
76 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
77 である。プロジェクトの説明とバグ報告に関する情報は
78 http://www.kernel.org/doc/man\-pages/ に書かれている。