OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / glibc-linuxthreads / release / man3 / pthread_sigmask.3
1 .\"   Copyright (C) 1996-1999 Free Software Foundation, Inc.
2 .\"
3 .\"   Permission is granted to make and distribute verbatim copies of
4 .\" this manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\"   Permission is granted to copy and distribute modified versions of
8 .\" this manual under the conditions for verbatim copying, provided that
9 .\" the entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\"   Permission is granted to copy and distribute translations of this
13 .\" manual into another language, under the above conditions for modified
14 .\" versions, except that this permission notice may be stated in a
15 .\" translation approved by the Foundation.
16 .\"
17 .\" Copyright (C) 1996 Xavier Leroy.
18 .\"
19 .\" Japanese Version Copyright (C) 2002-2003 Suzuki Takashi
20 .\"         all rights reserved.
21 .\" Translated Tue Dec 31 20:02:27 JST 2002
22 .\"         by Suzuki Takashi.
23 .\"
24 .\"WORD:    handling of signals ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°
25 .\"WORD:    signal mask         ¥·¥°¥Ê¥ë¥Þ¥¹¥¯
26 .\"WORD:    calling thread      ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É
27 .\"WORD:    signal action       ¥·¥°¥Ê¥ë¥¢¥¯¥·¥ç¥ó
28 .\"WORD:    signal handler      ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é
29 .\"
30 .\"
31 .TH PTHREAD_SIGNAL 3 LinuxThreads
32
33
34 .SH "̾Á°"
35 pthread_sigmask, pthread_kill, sigwait \- ¥¹¥ì¥Ã¥ÉÆâ¤Ç¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°
36
37 .SH "½ñ¼°"
38 .B #include <pthread.h>
39 .br
40 .B #include <signal.h>
41
42 .BI "int pthread_sigmask(int " how ", const sigset_t *" newmask ", sigset_t *" oldmask ");"
43
44 .BI "int pthread_kill(pthread_t " thread ", int " signo ");"
45
46 .BI "int sigwait(const sigset_t *" set ", int *" sig ");"
47
48 .SH "ÀâÌÀ"
49
50 .B "pthread_sigmask"
51 ¤Ï¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ò
52 °ú¿ô
53 .I "how"
54 ¤ª¤è¤Ó
55 .I "newmask"
56 ¤Ç»ØÄꤵ¤ì¤ë¤è¤¦¤ËÊѹ¹¤¹¤ë¡£
57 .I "oldmask"
58 ¤¬
59 .B "NULL"
60 ¤Ç¤Ê¤¤¤È¤­¤Ë¤Ï¡¢Ä¾Á°¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤¬
61 .I "oldmask"
62 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤µ¤ì¤ë¡£
63
64 °ú¿ô
65 .I "how"
66 ¤ª¤è¤Ó
67 .I "newmask"
68 ¤Î°ÕÌ£¤Ï
69 .BR "sigprocmask" (2)
70 ¤Î°ú¿ô¤Î°ÕÌ£¤ÈƱ¤¸¤Ç¤¢¤ë¡£
71 .I "how"
72 ¤¬
73 .B "SIG_SETMASK"
74 ¤Î¤È¤­¤Ë¤Ï¡¢
75 ¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤¬
76 .I "newmask"
77 ¤ËÀßÄꤵ¤ì¤ë¡£
78 .I "how"
79 ¤¬
80 .B "SIG_BLOCK"
81 ¤Î¤È¤­¤Ë¤Ï¡¢
82 .I "newmask"
83 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤¬¸½»þÅÀ¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ËÄɲ䵤ì¤ë¡£
84 .I "how"
85 ¤¬
86 .BR "SIG_UNBLOCK"
87 ¤Î¤È¤­¤Ë¤Ï¡¢
88 .I "newmask"
89 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤¬¸½»þÅÀ¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤«¤é¼è¤ê½ü¤«¤ì¤ë¡£
90
91 ¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ï¥¹¥ì¥Ã¥É¤´¤È¤ËÀßÄꤵ¤ì¤ë¤³¤È¤ò»×¤¤½Ð¤·¤Æ¤Û¤·¤¤¡£
92 ¤·¤«¤·
93 .BR "sigaction" (2)
94 ¤ÇÀßÄꤵ¤ì¤ë
95 ¥·¥°¥Ê¥ë¥¢¥¯¥·¥ç¥ó¤È¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Ï¡¢
96 ¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¶¦Ä̤Ǥ¢¤ë¡£
97
98 .B "pthread_kill"
99 ¤Ï¥·¥°¥Ê¥ëÈÖ¹æ
100 .I "signo"
101 ¤Î¥·¥°¥Ê¥ë¤ò
102 ¥¹¥ì¥Ã¥É
103 .IR "thread"
104 ¤ËÁ÷¿®¤¹¤ë¡£
105 ¥·¥°¥Ê¥ë¤Ï
106 .BR "kill" (2)
107 ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤ËÇÛÁ÷¤µ¤ì¥Ï¥ó¥É¥ë¤µ¤ì¤ë¡£
108
109 .B "sigwait"
110 ¤Ï
111 .I "set"
112 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤Î¤¦¤Á¤¤¤º¤ì¤« 1 ¤Ä¤¬¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Ë
113 ÇÛÁ÷¤µ¤ì¤ë¤Þ¤Ç¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¼Â¹Ô¤òÄä»ß¤¹¤ë¡£
114 ¤½¤·¤Æ¼õ¿®¤·¤¿¥·¥°¥Ê¥ë¤Î¿ô¤ò
115 .I "sig"
116 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤·¤ÆÊ֤롣
117 .I "set"
118 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤Ï
119 .B "sigwait"
120 ¤ËÆþ¤ë¤È¤­¤Ë¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢Ìµ»ë¤µ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
121 ÇÛÁ÷¤µ¤ì¤¿¥·¥°¥Ê¥ë¤ËÂФ¹¤ë¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Æ¤â¡¢
122 ¥Ï¥ó¥É¥é´Ø¿ô¤Ï¸Æ¤Ó½Ð¤µ¤ì
123 .I "¤Ê¤¤"
124 ¡£
125
126 .SH "¼è¤ê¾Ã¤·"
127
128 .B "sigwait"
129 ¤Ï¼è¤ê¾Ã¤·¥Ý¥¤¥ó¥È¤Ç¤¢¤ë¡£
130
131 .SH "ÊÖ¤êÃÍ"
132
133 À®¸ù¤¹¤ë¤È¡¢0 ¤¬Ê֤롣
134 ¼ºÇԤξì¹ç¡¢Èó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤¬Ê֤롣
135
136 .SH "¥¨¥é¡¼"
137
138 ´Ø¿ô
139 .B "pthread_sigmask"
140 ¤Ï¥¨¥é¡¼¤Î¤È¤­¡¢¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
141 .RS
142 .TP
143 .B "EINVAL"
144 .I "how"
145 ¤¬
146 .B "SIG_SETMASK"
147 ¤ª¤è¤Ó
148 .B "SIG_BLOCK"
149 ¡¢
150 .B "SIG_UNBLOCK"
151 ¤Î¤¤¤º¤ì¤Ç¤â¤Ê¤¤¡£
152
153 .TP
154 .B "EFAULT"
155 .I "newmask"
156 ¤Þ¤¿¤Ï
157 .I "oldmask"
158 ¤¬Ìµ¸ú¤Ê¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤ë¡£
159 .RE
160
161 ´Ø¿ô
162 .B "pthread_kill"
163 ¤Ï¥¨¥é¡¼¤Î¤È¤­¡¢¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
164 .RS
165 .TP
166 .B "EINVAL"
167 .I "signo"
168 ¤ÏÍ­¸ú¤Ê¥·¥°¥Ê¥ëÈÖ¹æ¤Ç¤Ê¤¤¡£
169
170 .TP
171 .B "ESRCH"
172 ¥¹¥ì¥Ã¥É
173 .I "thread"
174 ¤Ï¸ºß¤·¤Ê¤¤ (Î㤨¤Ð¡¢¤½¤Î¥¹¥ì¥Ã¥É¤Ï¤¹¤Ç¤Ë½ªÎ»¤·¤Æ¤¤¤ë) ¡£
175 .RE
176
177 ´Ø¿ô
178 .B "sigwait"
179 ¤¬¥¨¥é¡¼¤òÊÖ¤¹¤³¤È¤Ï¤Ê¤¤¡£
180
181 .SH "Ãø¼Ô"
182 Xavier Leroy <Xavier.Leroy@inria.fr>
183
184 .SH "´ØÏ¢¹àÌÜ"
185 .BR "sigprocmask" (2),
186 .BR "kill" (2),
187 .BR "sigaction" (2),
188 .BR "sigsuspend" (2).
189
190 .SH "Ãí°Õ"
191
192 .B "sigwait"
193 ¤¬³Î¼Â¤Ëµ¡Ç½¤¹¤ë¤è¤¦¤Ë¡¢
194 ÇÛÁ÷¤òÂԤĥ·¥°¥Ê¥ë¤Ï¡¢¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤À¤±¤Ç¤Ê¤¯
195 ¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
196 ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢POSIX ¤Î¥·¥°¥Ê¥ëÇÛÁ÷µ¡¹½¤Ï
197 ¥·¥°¥Ê¥ë¤ò¼õ¿®¤¹¤ë¥¹¥ì¥Ã¥É¤¬
198 .B "sigwait"
199 ¤ò¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É¤È¤Ê¤ë¤³¤È¤òÊݾڤ·¤Ê¤¤¡£
200 ¤³¤ì¤ò¼Â¸½¤¹¤ëºÇ¤â¤è¤¤ÊýË¡¤Ï¡¢
201 ¤É¤Î¥¹¥ì¥Ã¥É¤òÀ¸À®¤¹¤ë¤è¤ê¤âÁ°¤Ë¤½¤ì¤é¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¡¢
202 ¥×¥í¥°¥é¥àÃæ¤Ç¤Ï
203 .B "sigwait"
204 ¤ò¸Æ¤Ó½Ð¤¹°Ê³°¡¢¥Ö¥í¥Ã¥¯¤ò²ò½ü¤·¤Ê¤¤¤³¤È¤Ç¤¢¤ë¡£
205
206 .SH "¥Ð¥°"
207
208 LinuxThreads ¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°¤Ï POSIX É¸½à¤È¤ÏÂ礭¤¯°Û¤Ê¤Ã¤Æ¤¤¤ë¡£
209 POSIX É¸½à¤Ë¤è¤ë¤È¡¢¡ÖÈóƱ´ü¤Î¡× (³°Éô¤Î) ¥·¥°¥Ê¥ë¤Ï
210 ¥×¥í¥»¥¹Á´ÂΠ(¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Î½¸¤Þ¤ê) ¤ËÂФ·¤Æȯ¹Ô¤µ¤ì¡¢
211 ¤½¤Î¸åÆÃÄê¤Î 1 ¤Ä¤Î¥¹¥ì¥Ã¥É¤ËÇÛÁ÷¤µ¤ì¤ë¡£
212 ¼ÂºÝ¤Ë¥·¥°¥Ê¥ë¤ò¼õ¿®¤¹¤ë¥¹¥ì¥Ã¥É¤Ï
213 ¤½¤Î»þÅÀ¤Ç¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤¤¤Ê¤¤¥¹¥ì¥Ã¥É¤Î¤¤¤º¤ì¤«¤È¤Ê¤ë¡£
214
215 LinuxThreads ¤Ç¤Ï¡¢
216 ¤½¤ì¤¾¤ì¤Î¥¹¥ì¥Ã¥É¤¬¼ÂºÝ¤Ë¤Ï¸ÇÍ­¤Î PID ¤ò¤â¤Ä¥«¡¼¥Í¥ë¥×¥í¥»¥¹¤Ç¤¢¤ë¤¿¤á¡¢
217 ³°Éô¤Î¥·¥°¥Ê¥ë¤ÏÆÃÄê¤Î 1 ¤Ä¤Î¥¹¥ì¥Ã¥É¤ËľÀÜÇÛÁ÷¤µ¤ì¤ë¡£
218 Î㤨¤Ð¡¢¤â¤·Ê̤Υ¹¥ì¥Ã¥É¤¬
219 .B "sigwait"
220 ¤ò»È¤Ã¤Æ¤½¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤â¡¢
221 ¤½¤Î¥¹¥ì¥Ã¥É¤¬ºÆ³«¤µ¤ì¤ë¤³¤È¤Ï¤Ê¤¤¡£
222
223 .B "sigwait"
224 ¤Î LinuxThreads ¤Î¼ÂÁõ¤Ç¤Ï¡¢
225 .B "sigwait"
226 ¤ÏÂÔ¤Á¤Î´ü´ÖÃæ¡¢
227 .I "set"
228 ¤Ë´Þ¤Þ¤ì¤ë¥·¥°¥Ê¥ë¤ËÂбþ¤¹¤ë¥À¥ß¡¼¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤òÅÐÏ¿¤¹¤ë¡£
229 ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Ï¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¶¦Ä̤Ǥ¢¤ë¤¿¤á¡¢
230 ¾¤Î¥¹¥ì¥Ã¥É¤Ï¤³¤ì¤é¤Î¥·¥°¥Ê¥ë¤ËÂФ·¤ÆÆȼ«¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤òÅÐÏ¿¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
231 ¤¢¤ë¤¤¤Ï¤½¤ÎÂå¤ï¤ê¤Ë¡¢¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤¬
232 ¤³¤ì¤é¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤
233 (¤³¤Î¤³¤È¤Ï¤È¤Ë¤«¤¯¿ä¾©¤µ¤ì¤Æ¤¤¤ë -- Ãí°Õ¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤Î¤³¤È) ¡£