OSDN Git Service

Update README
[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 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .\"
35 .\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI all rights reserved.
36 .\" Translated 2005-10-03, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
37 .\" Updated 2005-12-05, Akihiro MOTOKI, Catch up to LDP man-pages 2.16
38 .\"
39 .TH SIGPENDING 2 2013\-12\-11 Linux "Linux Programmer's Manual"
40 .SH 名前
41 sigpending \- 処理待ちのシグナルの検査
42 .SH 書式
43 \fB#include <signal.h>\fP
44 .sp
45 \fBint sigpending(sigset_t *\fP\fIset\fP\fB);\fP
46 .sp
47 .in -4n
48 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
49 .in
50 .sp
51 .ad l
52 \fBsigpending\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE ||
53 _POSIX_SOURCE
54 .ad b
55 .SH 説明
56 .PP
57 \fBsigpending\fP()  は、呼び出し元のスレッドへの配送を待っている (pending) シグナル集合 (すなわち、禁止中に発生したシグナル)
58 を返す。 処理待ちのシグナルのマスクが \fIset\fP に格納される。
59 .SH 返り値
60 \fBsigpending\fP() は成功した場合 0 を返す。 エラーの場合、 \-1 を返し、\fIerrno\fP にエラーの原因を示す値を設定する。
61 .SH エラー
62 .TP 
63 \fBEFAULT\fP
64 \fIset\fP が指しているメモリーが、プロセスのアドレス空間の有効な部分ではない。
65 .SH 準拠
66 POSIX.1\-2001.
67 .SH 注意
68 シグナル集合の操作に関する詳細は \fBsigsetops\fP(3)  を参照のこと。
69
70 シグナルが禁止 (ブロック) されており、かつ配送方法が "ignored" (無視)
71 になっている場合、そのシグナルが発生した場合に処理待ちシグナルのマスクにそのシグナルは追加\fIされない\fP。
72
73 あるスレッドに対する処理待ちのシグナルの集合は、 そのスレッド自体への処理待ちのシグナル集合と、プロセス全体への処理待ちの
74 シグナル集合をあわせたものである。 \fBsignal\fP(7)  参照。
75
76 \fBfork\fP(2)  経由で作成された子プロセスでは、処理待ちのシグナル集合は空の集合で初期化される。 \fBexecve\fP(2)
77 の前後で、処理待ちのシグナル集合は保持される。
78 .SH バグ
79 バージョン 2.2.1 以前の glibc では、 \fBsigpending\fP()  のラッパー関数に、処理待ちのリアルタイムシグナルに関する情報が
80 正しく返されないというバグがある。
81 .SH 関連項目
82 \fBkill\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBsigprocmask\fP(2),
83 \fBsigsuspend\fP(2), \fBsigsetops\fP(3), \fBsignal\fP(7)
84 .SH この文書について
85 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部である。
86 プロジェクトの説明とバグ報告に関する情報は \%http://www.kernel.org/doc/man\-pages/ に書かれている。