1 .\" Copyright (C) 1996-1999 Free Software Foundation, Inc.
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.
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.
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.
17 .\" Copyright (C) 1996 Xavier Leroy.
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.
24 .\"WORD: handling of signals ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°
25 .\"WORD: signal mask ¥·¥°¥Ê¥ë¥Þ¥¹¥¯
26 .\"WORD: calling thread ¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É
27 .\"WORD: signal action ¥·¥°¥Ê¥ë¥¢¥¯¥·¥ç¥ó
28 .\"WORD: signal handler ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é
31 .TH PTHREAD_SIGNAL 3 LinuxThreads
35 pthread_sigmask, pthread_kill, sigwait \- ¥¹¥ì¥Ã¥ÉÆâ¤Ç¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°
38 .B #include <pthread.h>
40 .B #include <signal.h>
42 .BI "int pthread_sigmask(int " how ", const sigset_t *" newmask ", sigset_t *" oldmask ");"
44 .BI "int pthread_kill(pthread_t " thread ", int " signo ");"
46 .BI "int sigwait(const sigset_t *" set ", int *" sig ");"
51 ¤Ï¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ò
56 ¤Ç»ØÄꤵ¤ì¤ë¤è¤¦¤ËÊѹ¹¤¹¤ë¡£
60 ¤Ç¤Ê¤¤¤È¤¤Ë¤Ï¡¢Ä¾Á°¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤¬
62 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤µ¤ì¤ë¡£
70 ¤Î°ú¿ô¤Î°ÕÌ£¤ÈƱ¤¸¤Ç¤¢¤ë¡£
83 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤¬¸½»þÅÀ¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ËÄɲ䵤ì¤ë¡£
89 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤¬¸½»þÅÀ¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤«¤é¼è¤ê½ü¤«¤ì¤ë¡£
91 ¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ï¥¹¥ì¥Ã¥É¤´¤È¤ËÀßÄꤵ¤ì¤ë¤³¤È¤ò»×¤¤½Ð¤·¤Æ¤Û¤·¤¤¡£
95 ¥·¥°¥Ê¥ë¥¢¥¯¥·¥ç¥ó¤È¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Ï¡¢
96 ¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¶¦Ä̤Ǥ¢¤ë¡£
107 ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¤è¤¦¤ËÇÛÁ÷¤µ¤ì¥Ï¥ó¥É¥ë¤µ¤ì¤ë¡£
112 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤Î¤¦¤Á¤¤¤º¤ì¤« 1 ¤Ä¤¬¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Ë
113 ÇÛÁ÷¤µ¤ì¤ë¤Þ¤Ç¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤Î¼Â¹Ô¤òÄä»ß¤¹¤ë¡£
114 ¤½¤·¤Æ¼õ¿®¤·¤¿¥·¥°¥Ê¥ë¤Î¿ô¤ò
116 ¤Ç»Ø¤·¼¨¤µ¤ì¤ëÎΰè¤Ë³ÊǼ¤·¤ÆÊ֤롣
118 ¤Ç»ØÄꤵ¤ì¤ë¥·¥°¥Ê¥ë¤Ï
120 ¤ËÆþ¤ë¤È¤¤Ë¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢Ìµ»ë¤µ¤ì¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
121 ÇÛÁ÷¤µ¤ì¤¿¥·¥°¥Ê¥ë¤ËÂФ¹¤ë¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Æ¤â¡¢
122 ¥Ï¥ó¥É¥é´Ø¿ô¤Ï¸Æ¤Ó½Ð¤µ¤ì
129 ¤Ï¼è¤ê¾Ã¤·¥Ý¥¤¥ó¥È¤Ç¤¢¤ë¡£
133 À®¸ù¤¹¤ë¤È¡¢0 ¤¬Ê֤롣
134 ¼ºÇԤξì¹ç¡¢Èó 0 ¤Î¥¨¥é¡¼¥³¡¼¥É¤¬Ê֤롣
140 ¤Ï¥¨¥é¡¼¤Î¤È¤¡¢¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
158 ¤¬Ìµ¸ú¤Ê¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤ë¡£
163 ¤Ï¥¨¥é¡¼¤Î¤È¤¡¢¼¡¤Î¤è¤¦¤Ê¥¨¥é¡¼¥³¡¼¥É¤òÊÖ¤¹:
168 ¤Ï͸ú¤Ê¥·¥°¥Ê¥ëÈÖ¹æ¤Ç¤Ê¤¤¡£
174 ¤Ï¸ºß¤·¤Ê¤¤ (Î㤨¤Ð¡¢¤½¤Î¥¹¥ì¥Ã¥É¤Ï¤¹¤Ç¤Ë½ªÎ»¤·¤Æ¤¤¤ë) ¡£
179 ¤¬¥¨¥é¡¼¤òÊÖ¤¹¤³¤È¤Ï¤Ê¤¤¡£
182 Xavier Leroy <Xavier.Leroy@inria.fr>
185 .BR "sigprocmask" (2),
188 .BR "sigsuspend" (2).
193 ¤¬³Î¼Â¤Ëµ¡Ç½¤¹¤ë¤è¤¦¤Ë¡¢
194 ÇÛÁ÷¤òÂԤĥ·¥°¥Ê¥ë¤Ï¡¢¸Æ¤Ó½Ð¤·¥¹¥ì¥Ã¥É¤À¤±¤Ç¤Ê¤¯
195 ¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
196 ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢POSIX ¤Î¥·¥°¥Ê¥ëÇÛÁ÷µ¡¹½¤Ï
197 ¥·¥°¥Ê¥ë¤ò¼õ¿®¤¹¤ë¥¹¥ì¥Ã¥É¤¬
199 ¤ò¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É¤È¤Ê¤ë¤³¤È¤òÊݾڤ·¤Ê¤¤¡£
200 ¤³¤ì¤ò¼Â¸½¤¹¤ëºÇ¤â¤è¤¤ÊýË¡¤Ï¡¢
201 ¤É¤Î¥¹¥ì¥Ã¥É¤òÀ¸À®¤¹¤ë¤è¤ê¤âÁ°¤Ë¤½¤ì¤é¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¡¢
204 ¤ò¸Æ¤Ó½Ð¤¹°Ê³°¡¢¥Ö¥í¥Ã¥¯¤ò²ò½ü¤·¤Ê¤¤¤³¤È¤Ç¤¢¤ë¡£
208 LinuxThreads ¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥ê¥ó¥°¤Ï POSIX ɸ½à¤È¤ÏÂ礤¯°Û¤Ê¤Ã¤Æ¤¤¤ë¡£
209 POSIX ɸ½à¤Ë¤è¤ë¤È¡¢¡ÖÈóƱ´ü¤Î¡× (³°Éô¤Î) ¥·¥°¥Ê¥ë¤Ï
210 ¥×¥í¥»¥¹Á´ÂÎ (¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Î½¸¤Þ¤ê) ¤ËÂФ·¤Æȯ¹Ô¤µ¤ì¡¢
211 ¤½¤Î¸åÆÃÄê¤Î 1 ¤Ä¤Î¥¹¥ì¥Ã¥É¤ËÇÛÁ÷¤µ¤ì¤ë¡£
212 ¼ÂºÝ¤Ë¥·¥°¥Ê¥ë¤ò¼õ¿®¤¹¤ë¥¹¥ì¥Ã¥É¤Ï
213 ¤½¤Î»þÅÀ¤Ç¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤¤¤Ê¤¤¥¹¥ì¥Ã¥É¤Î¤¤¤º¤ì¤«¤È¤Ê¤ë¡£
216 ¤½¤ì¤¾¤ì¤Î¥¹¥ì¥Ã¥É¤¬¼ÂºÝ¤Ë¤Ï¸ÇͤΠPID ¤ò¤â¤Ä¥«¡¼¥Í¥ë¥×¥í¥»¥¹¤Ç¤¢¤ë¤¿¤á¡¢
217 ³°Éô¤Î¥·¥°¥Ê¥ë¤ÏÆÃÄê¤Î 1 ¤Ä¤Î¥¹¥ì¥Ã¥É¤ËľÀÜÇÛÁ÷¤µ¤ì¤ë¡£
218 Î㤨¤Ð¡¢¤â¤·Ê̤Υ¹¥ì¥Ã¥É¤¬
220 ¤ò»È¤Ã¤Æ¤½¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤â¡¢
221 ¤½¤Î¥¹¥ì¥Ã¥É¤¬ºÆ³«¤µ¤ì¤ë¤³¤È¤Ï¤Ê¤¤¡£
224 ¤Î LinuxThreads ¤Î¼ÂÁõ¤Ç¤Ï¡¢
228 ¤Ë´Þ¤Þ¤ì¤ë¥·¥°¥Ê¥ë¤ËÂбþ¤¹¤ë¥À¥ß¡¼¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤òÅÐÏ¿¤¹¤ë¡£
229 ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Ï¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤Ç¶¦Ä̤Ǥ¢¤ë¤¿¤á¡¢
230 ¾¤Î¥¹¥ì¥Ã¥É¤Ï¤³¤ì¤é¤Î¥·¥°¥Ê¥ë¤ËÂФ·¤ÆÆȼ«¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤òÅÐÏ¿¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
231 ¤¢¤ë¤¤¤Ï¤½¤ÎÂå¤ï¤ê¤Ë¡¢¤¹¤Ù¤Æ¤Î¥¹¥ì¥Ã¥É¤¬
232 ¤³¤ì¤é¤Î¥·¥°¥Ê¥ë¤ò¥Ö¥í¥Ã¥¯¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤
233 (¤³¤Î¤³¤È¤Ï¤È¤Ë¤«¤¯¿ä¾©¤µ¤ì¤Æ¤¤¤ë -- Ãí°Õ¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤Î¤³¤È) ¡£