OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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)