OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man2 / sigpending.2
1 .\" Copyright (c) 2005 Michael Kerrisk
2 .\" based on earlier work by faith@cs.unc.edu and
3 .\" Mike Battersby <mib@deakin.edu.au>
4 .\"
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 .\"
25 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH SIGPENDING 2 2008\-10\-04 Linux "Linux Programmer's Manual"
33 .SH 名前
34 sigpending \- 処理待ちのシグナルの検査
35 .SH 書式
36 \fB#include <signal.h>\fP
37 .sp
38 \fBint sigpending(sigset_t *\fP\fIset\fP\fB);\fP
39 .sp
40 .in -4n
41 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
42 .in
43 .sp
44 .ad l
45 \fBsigpending\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE ||
46 _POSIX_SOURCE
47 .ad b
48 .SH 説明
49 .PP
50 \fBsigpending\fP()  は、呼び出し元のスレッドへの配送を待っている (pending) シグナル集合 (すなわち、禁止中に発生したシグナル)
51 を返す。 処理待ちのシグナルのマスクが \fIset\fP に格納される。
52 .SH 返り値
53 \fBsigpending\fP()  は成功すれば 0 を返し、エラーならば \-1 を返す。
54 .SH エラー
55 .TP 
56 \fBEFAULT\fP
57 \fIset\fP が指しているメモリが、プロセスのアドレス空間の有効な部分ではない。
58 .SH 準拠
59 POSIX.1\-2001.
60 .SH 注意
61 シグナル集合の操作に関する詳細は \fBsigsetops\fP(3)  を参照のこと。
62
63 あるスレッドに対する処理待ちのシグナルの集合は、 そのスレッド自体への処理待ちのシグナル集合と、プロセス全体への処理待ちの
64 シグナル集合をあわせたものである。 \fBsignal\fP(7)  参照。
65
66 \fBfork\fP(2)  経由で作成された子プロセスでは、処理待ちのシグナル集合は空の集合で初期化される。 \fBexecve\fP(2)
67 の前後で、処理待ちのシグナル集合は保持される。
68 .SH バグ
69 バージョン 2.2.1 以前の glibc では、 \fBsigpending\fP()  のラッパー関数に、処理待ちのリアルタイムシグナルに関する情報が
70 正しく返されないというバグがある。
71 .SH 関連項目
72 \fBkill\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBsigprocmask\fP(2),
73 \fBsigsuspend\fP(2), \fBsigsetops\fP(3), \fBsignal\fP(7)