OSDN Git Service

c4e53d7a570a529b3c4bf5a19922b2ef301ac87e
[linuxjm/LDP_man-pages.git] / release / man3 / sigset.3
1 '\" t
2 .\" Copyright (c) 2005 by Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI all rights reserved.
25 .\" Translated 2005-12-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
26 .\"
27 .TH SIGSET 3 2010-09-20 "Linux" "Linux Programmer's Manual"
28 .SH Ì¾Á°
29 sigset, sighold, sigrelse, sigignore \- System V ÈÇ¥·¥°¥Ê¥ë API
30 .SH ½ñ¼°
31 .B #include <signal.h>
32 .sp
33 .B typedef void (*sighandler_t)(int);
34 .sp
35 .BI "sighandler_t sigset(int " sig ", sighandler_t " disp );
36 .sp
37 .BI "int sighold(int " sig );
38 .sp
39 .BI "int sigrelse(int " sig );
40 .sp
41 .BI "int sigignore(int " sig );
42 .sp
43 .in -4n
44 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
45 .RB ( feature_test_macros (7)
46 »²¾È):
47 .in
48 .sp
49 .ad l
50 .BR sigset (),
51 .BR sighold (),
52 .BR sigrelse (),
53 .BR sigignore ():
54 .br
55 .RS 4
56 _XOPEN_SOURCE\ >=\ 500 ||
57 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
58 .RE
59 .ad
60 .SH ÀâÌÀ
61 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢ÀΤʤ¬¤é¤Î System V ÈÇ¥·¥°¥Ê¥ë API ¤ò»ÈÍѤ·¤Æ¤¤¤ë¥×¥í¥°¥é¥à
62 ¤ËÂФ·¤Æ¸ß´¹À­¤Î¤¢¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò glibc ¤ÇÄ󶡤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
63 ¤³¤Î API ¤Ï²áµî¤Î¤â¤Î¤Ç¤¢¤ê¡¢¿·¤·¤¤¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï
64 POSIX ¥·¥°¥Ê¥ë API
65 .RB ( sigaction (2),
66 .BR sigprocmask (2)
67 ¤Ê¤É) ¤ò»ÈÍѤ¹¤Ù¤­¤Ç¤¢¤ë¡£
68
69 ´Ø¿ô
70 .BR sigset ()
71 ¤Ï¥·¥°¥Ê¥ë
72 .I sig
73 ¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤ÎÆ°ºî¤òÊѹ¹¤¹¤ë¡£
74 .I disp
75 °ú¤­¿ô¤Ë¤Ï¡¢¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é´Ø¿ô¤Î¥¢¥É¥ì¥¹¤«¡¢
76 °Ê²¼¤ÎÄê¿ô¤Î¤¤¤º¤ì¤«°ì¤Ä¤ò»ØÄê¤Ç¤­¤ë¡£
77 .TP
78 .B SIG_DFL
79 .I sig
80 ¤ÎÆ°ºî¤ò¥Ç¥Õ¥©¥ë¥È¤Ë¥ê¥»¥Ã¥È¤¹¤ë¡£
81 .TP
82 .B SIG_IGN
83 .I sig
84 ¤ò̵»ë¤¹¤ë¡£
85 .TP
86 .B SIG_HOLD
87 ¤½¤Î¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ë
88 .I sig
89 ¤òÄɲ乤뤬¡¢
90 .I sig
91 ¤ÎÆ°ºî¤ÏÊѹ¹¤·¤Ê¤¤¡£
92 .PP
93 .I disp
94 ¤Ë¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Î¥¢¥É¥ì¥¹¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
95 ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤Î¼Â¹ÔÃæ¤Ï¡¢¤½¤Î¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ë
96 .I sig
97 ¤¬Äɲ䵤ì¤ë¡£
98 .PP
99 .I disp
100 ¤Ë
101 .B SIG_HOLD
102 °Ê³°¤ÎÃͤ¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
103 ¤½¤Î¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤«¤é
104 .I sig
105 ¤¬ºï½ü¤µ¤ì¤ë¡£
106 .PP
107 ¥·¥°¥Ê¥ë
108 .B SIGKILL
109 ¤È
110 .B SIGSTOP
111 ¤ËÂФ¹¤ëÆ°ºî¤ÏÊѹ¹¤Ç¤­¤Ê¤¤¡£
112 .PP
113 ´Ø¿ô
114 .BR sighold ()
115 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ë
116 .I sig
117 ¤òÄɲ乤롣
118
119 ´Ø¿ô
120 .BR sigrelse ()
121 ¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤«¤é
122 .I sig
123 ¤òºï½ü¤¹¤ë¡£
124
125 ´Ø¿ô
126 .BR sigignore ()
127 ¤Ï¡¢
128 .I sig
129 ¤ÎÆ°ºî¤ò
130 .B SIG_IGN
131 ¤ËÀßÄꤹ¤ë¡£
132 .SH ÊÖ¤êÃÍ
133 .BR sigset ()
134 ¤ÏÀ®¸ù¤¹¤ë¤È¡¢
135 ¸Æ¤Ó½Ð¤·Á°¤Ë
136 .I sig
137 ¤¬¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¤Ï
138 .B SIG_HOLD
139 ¤òÊÖ¤·¡¢
140 ¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï
141 Êѹ¹Á°¤Î¤½¤Î¥·¥°¥Ê¥ë¤ÎÆ°ºî¤òÊÖ¤¹¡£
142 ¥¨¥é¡¼¤Î¾ì¹ç¡¢
143 .BR sigset ()
144 ¤Ï \-1 ¤òÊÖ¤·¡¢
145 .I errno
146 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹Ãͤò¥»¥Ã¥È¤¹¤ë¡£
147 ⤷¡¢°Ê²¼¤Î¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È¤Î¤³¤È¡£
148
149 ´Ø¿ô
150 .BR sighold (),
151 .BR sigrelse (),
152 .BR sigignore ()
153 ¤ÏÀ®¸ù¤¹¤ë¤È 0 ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
154 .I errno
155 ¤Ë¥¨¥é¡¼¤ò¼¨¤¹Ãͤò¥»¥Ã¥È¤¹¤ë¡£
156 .SH ¥¨¥é¡¼
157 .BR sigset ()
158 ¤Ë´Ø¤·¤Æ¤Ï¡¢
159 .BR sigaction (2)
160 ¤È
161 .BR sigprocmask (2)
162 ¤Î¡Ö¥¨¥é¡¼¡×¤ÎÀá¤ò»²¾È¡£
163
164 .BR sighold ()
165 ¤È
166 .BR sigrelse ()
167 ¤Ë´Ø¤·¤Æ¤Ï¡¢
168 .BR sigprocmask (2)
169 ¤Î¡Ö¥¨¥é¡¼¡×¤ÎÀá¤ò»²¾È¡£
170
171 .BR sigignore ()
172 ¤Ë´Ø¤·¤Æ¤Ï¡¢
173 .BR sigaction (2)
174 ¤Î¡Ö¥¨¥é¡¼¡×¤ÎÀá¤ò»²¾È¡£
175 .SH ½àµò
176 SVr4, POSIX.1-2001.
177 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÇÑ»ßͽÄê¤Ç¤¢¤ë¡£¿·¤·¤¤¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¤³¤È¡£
178 POSIX.1-2008 ¤Ï¡¢
179 .BR sighold (),
180 .BR sigignore (),
181 .BR sigpause (),
182 .BR sigrelse (),
183 .BR sigset ()
184 ¤òÇÑ»ßͽÄê¤È¤·¤Æ¤¤¤ë¡£
185 Âå¤ï¤ê¤Ë¡¢
186 .BR sigaction (2),
187 .BR sigprocmask (2),
188 .BR pthread_sigmask (3),
189 .BR sigsuspend (2)
190 ¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë¡£
191 .SH Ãí°Õ
192 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc 2.1 ¤ÇÅо줷¤¿¡£
193
194 .I sighandler_t
195 ·¿¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ê¡¢¤³¤Î man page ¤Ç
196 .BR sigset ()
197 ¤Î¥×¥í¥È¥¿¥¤¥×¤ò¤è¤êÆɤߤ䤹¤¯¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤Æ¤¤¤ë¤À¤±¤Ç¤¢¤ë¡£
198
199 ´Ø¿ô
200 .BR sigset ()
201 ¤Ï¿®ÍêÀ­¤Î¤¢¤ë¥·¥°¥Ê¥ë½èÍýµ¡¹½¤òÄ󶡤¹¤ë
202 .RI ( sa_mask
203 ¤ò 0 ¤Ç
204 .BR sigaction (2)
205 ¤ò¸Æ¤Ó½Ð¤·¤¿¤È¤­¤ÈƱÍÍ)¡£
206
207 System V ¤Ç¤Ï¡¢´Ø¿ô
208 .BR signal ()
209 ¤¬Ä󶡤¹¤ë½èÍýµ¡¹½¤Ï¿®ÍêÀ­¤Î¤Ê¤¤¤â¤Î¤Ç¤¢¤ë
210 .RI ( sa_mask
211 ¤ò
212 .IR "SA_RESETHAND | SA_NODEFER"
213 ¤È¤·¤Æ
214 .BR sigaction (2)
215 ¤ò¸Æ¤Ó½Ð¤·¤¿¤È¤­¤ÈƱÍÍ)¡£
216 BSD ¤Ç¤Ï¡¢
217 .BR signal ()
218 ¤Ï¿®ÍêÀ­¤Î¤¢¤ë½èÍýµ¡¹½¤òÄ󶡤¹¤ë¡£
219 POSIX.1-2001 ¤Ç¤Ï¡¢
220 .BR signal ()
221 ¤Î¤³¤ÎÅÀ¤Ïµ¬Äꤷ¤Ê¤¤¤Þ¤Þ¤È¤Ê¤Ã¤Æ¤¤¤ë¡£
222 ¤µ¤é¤Ê¤ë¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï
223 .BR signal (2)
224 ¤ò»²¾È¡£
225
226 BSD ¤È System V ¤Î¤É¤Á¤é¤Î¥·¥¹¥Æ¥à¤Ç¤â
227 ¥·¥°¥Ê¥ë¤òÂԤĤ¿¤á¤Ë¡¢
228 .BR sigpause (3)
229 ¤È¤¤¤¦Ì¾Á°¤Î´Ø¿ô¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¤¬¡¢
230 ¤³¤Î´Ø¿ô¤Î°ú¤­¿ô¤ÏξÊý¤Î¥·¥¹¥Æ¥à¤Ç°Û¤Ê¤ë¡£
231 ¾ÜºÙ¤Ï
232 .BR sigpause (3)
233 ¤ò»²¾È¡£
234 .SH ¥Ð¥°
235 2.2 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î glibc ¤Ç¤Ï¡¢
236 .I disp
237 ¤Ë
238 .B SIG_HOLD
239 °Ê³°¤ÎÃͤ¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
240 .I sig
241 ¤Î¥Ö¥í¥Ã¥¯²ò½ü¤ò¹Ô¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¡£
242
243 2.3.5 °ÊÁ°¤ÎÁ´¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Î glibc ¤Ç¤Ï¡¢
244 .BR sigset ()
245 ¤¬Êѹ¹Á°¤Î¥·¥°¥Ê¥ë¤ÎÆ°ºî¤òÀµ¤·¤¯ÊÖ¤µ¤Ê¤¤¾ì¹ç¤¬ 2¤Ä¤¢¤ë¡£
246 °ì¤Ä¤á¤Ï¡¢
247 .I disp
248 ¤Ë
249 .B SIG_HOLD
250 ¤¬»ØÄꤵ¤ì¤ë¤È¡¢À®¸ù¤·¤¿¾ì¹ç
251 .BR sigset ()
252 ¤Ï¾ï¤Ë
253 .B SIG_HOLD
254 ¤òÊÖ¤¹¤³¤È¤Ç¤¢¤ë¡£
255 Àµ¤·¤¯¤Ï¡¢(¥·¥°¥Ê¥ë¤¬¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï)
256 Êѹ¹Á°¤Î¥·¥°¥Ê¥ë¤ÎÆ°ºî¤òÊÖ¤¹¤Ù¤­¤Ç¤¢¤ë
257 (¥·¥°¥Ê¥ë¤¬¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤¿¾ì¹ç¤Ë¤Ï¡¢
258 .B SIG_HOLD
259 ¤¬ÊÖ¤µ¤ì¤ë)¡£
260 ¤â¤¦°ì¤Ä¤Ï¡¢¥·¥°¥Ê¥ë¤¬¸½ºß¥Ö¥í¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
261 À®¸ù¤·¤¿¾ì¹ç¤Î
262 .BR sigset ()
263 ¤ÎÊÖ¤êÃͤÏ
264 .B SIG_HOLD
265 ¤Ë¤Ê¤ë¤Ù¤­¤Ç¤¢¤ë¤¬¡¢¼ÂºÝ¤Ë¤Ï
266 Êѹ¹Á°¤Î¥·¥°¥Ê¥ë¤ÎÆ°ºî¤¬ÊÖ¤µ¤ì¤ë¤³¤È¤Ç¤¢¤ë¡£
267 ¤³¤ì¤é¤ÎÌäÂê¤Ï glibc 2.5 °Ê¹ß¤Ç½¤Àµ¤µ¤ì¤Æ¤¤¤ë¡£
268 .\" See http://sourceware.org/bugzilla/show_bug.cgi?id=1951
269 .SH ´ØÏ¢¹àÌÜ
270 .BR kill (2),
271 .BR pause (2),
272 .BR sigaction (2),
273 .BR signal (2),
274 .BR sigprocmask (2),
275 .BR raise (3),
276 .BR sigpause (3),
277 .BR sigvec (3),
278 .BR feature_test_macros (7),
279 .BR signal (7)