OSDN Git Service

b9ee15eae24fa27aade4b8ebde34d7c9de0aca4a
[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 .\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI all rights reserved.
28 .\" Translated 2005-10-03, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
29 .\" Updated 2005-12-05, Akihiro MOTOKI, Catch up to LDP man-pages 2.16
30 .\"
31 .\"WORD:        pending                 処理待ちの
32 .\"
33 .TH SIGPENDING 2 2008-10-04 "Linux" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH 名前
36 .\"O sigpending \- examine pending signals
37 sigpending \- 処理待ちのシグナルの検査
38 .\"O .SH SYNOPSIS
39 .SH 書式
40 .B #include <signal.h>
41 .sp
42 .BI "int sigpending(sigset_t *" set );
43 .sp
44 .in -4n
45 .\"O Feature Test Macro Requirements for glibc (see
46 .\"O .BR feature_test_macros (7)):
47 glibc 向けの機能検査マクロの要件
48 .RB ( feature_test_macros (7)
49 参照):
50 .in
51 .sp
52 .ad l
53 .BR sigpending ():
54 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
55 .ad b
56 .\"O .SH DESCRIPTION
57 .SH 説明
58 .PP
59 .\"O .BR sigpending ()
60 .\"O returns the set of signals that are pending for delivery to the calling
61 .\"O thread (i.e., the signals which have been raised while blocked).
62 .\"O The mask of pending signals is returned in
63 .\"O .IR set .
64 .BR sigpending ()
65 は、呼び出し元のスレッドへの配送を待っている (pending) シグナル集合
66 (すなわち、禁止中に発生したシグナル) を返す。
67 処理待ちのシグナルのマスクが
68 .I set
69 に格納される。
70 .\"O .SH "RETURN VALUE"
71 .SH 返り値
72 .\"O .BR sigpending ()
73 .\"O returns 0 on success and \-1 on error.
74 .BR sigpending ()
75 は成功すれば 0 を返し、エラーならば \-1 を返す。
76 .\"O .SH ERRORS
77 .SH エラー
78 .TP
79 .B EFAULT
80 .\"O .I set
81 .\"O points to memory which is not a valid part of the process address space.
82 .I set
83 が指しているメモリが、プロセスのアドレス空間の有効な部分ではない。
84 .\"O .SH "CONFORMING TO"
85 .SH 準拠
86 POSIX.1-2001.
87 .\"O .SH NOTES
88 .SH 注意
89 .\"O See
90 .\"O .BR sigsetops (3)
91 .\"O for details on manipulating signal sets.
92 シグナル集合の操作に関する詳細は
93 .BR sigsetops (3)
94 を参照のこと。
95
96 .\"O The set of signals that is pending for a thread
97 .\"O is the union of the set of signals that is pending for that thread
98 .\"O and the set of threads that is pending for the process as a whole; see
99 .\"O .BR signal (7).
100 あるスレッドに対する処理待ちのシグナルの集合は、
101 そのスレッド自体への処理待ちのシグナル集合と、プロセス全体への処理待ちの
102 シグナル集合をあわせたものである。
103 .BR signal (7)
104 参照。
105
106 .\"O A child created via
107 .\"O .BR fork (2)
108 .\"O initially has an empty pending signal set;
109 .\"O the pending signal set is preserved across an
110 .\"O .BR execve (2).
111 .BR fork (2)
112 経由で作成された子プロセスの処理待ちシグナル集合は最初は空である。
113 .BR execve (2)
114 の前後で、処理待ちシグナル集合は保持される。
115 .\"O .SH BUGS
116 .SH バグ
117 .\"O In versions of glibc up to and including 2.2.1,
118 .\"O there is a bug in the wrapper function for
119 .\"O .BR sigpending ()
120 .\"O which means that information about pending real-time signals
121 .\"O is not correctly returned.
122 バージョン 2.2.1 以前の glibc では、
123 .BR sigpending ()
124 のラッパー関数に、処理待ちのリアルタイムシグナルに関する情報が
125 正しく返されないというバグがある。
126 .\"O .SH "SEE ALSO"
127 .SH 関連項目
128 .BR kill (2),
129 .BR sigaction (2),
130 .BR signal (2),
131 .BR sigprocmask (2),
132 .BR sigsuspend (2),
133 .BR sigsetops (3),
134 .BR signal (7)