OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man3 / sigsetops.3
1 .\" Copyright (c) 1994 Mike Battersby
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" 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 this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Modified by aeb, 960721
24 .\" 2005-11-21, mtk, added descriptions of sigisemptyset(), sigandset(),
25 .\"                  and sigorset()
26 .\" 2007-10-26 mdw   added wording that a sigset_t must be initialized
27 .\"                  prior to use
28 .\"
29 .\"WORD:        signal set              ¥·¥°¥Ê¥ë½¸¹ç
30 .\"
31 .\" Japanese Version Copyright (c) 1998 HANATAKA Shinya
32 .\"         all rights reserved.
33 .\" Translated 1998-05-24, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
34 .\" Updated 2005-12-05, Akihiro MOTOKI, Catch up to LDP man-pages 2.16
35 .\" Updated 2008-02-09, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.77
36 .\"
37 .TH SIGSETOPS 3 2008-09-01 "Linux" "Linux Programmer's Manual"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
41 .\"O signal set operations.
42 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
43 ¥·¥°¥Ê¥ë½¸¹ç¤ÎÁàºî
44 .\"O .SH SYNOPSIS
45 .SH ½ñ¼°
46 .B #include <signal.h>
47 .sp
48 .BI "int sigemptyset(sigset_t *" set );
49 .sp
50 .BI "int sigfillset(sigset_t *" set );
51 .sp
52 .BI "int sigaddset(sigset_t *" set ", int " signum );
53 .sp
54 .BI "int sigdelset(sigset_t *" set ", int " signum );
55 .sp
56 .BI "int sigismember(const sigset_t *" set ", int " signum );
57 .sp
58 .in -4n
59 .\"O Feature Test Macro Requirements for glibc (see
60 .\"O .BR feature_test_macros (7)):
61 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
62 .RB ( feature_test_macros (7)
63 »²¾È):
64 .in
65 .sp
66 .ad l
67 .BR sigemptyset (),
68 .BR sigfillset (),
69 .BR sigaddset (),
70 .BR sigdelset (),
71 .BR sigismember ():
72 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
73 .ad b
74 .\"O .SH DESCRIPTION
75 .SH ÀâÌÀ
76 .\"O These functions allow the manipulation of POSIX signal sets.
77 ¤³¤ì¤é¤Î´Ø¿ô¤Ï POSIX ¥·¥°¥Ê¥ë½¸¹ç(signal set)¤òÁàºî¤¹¤ë¤¿¤á»ÈÍѤ¹¤ë¡£
78 .PP
79 .\"O .BR sigemptyset ()
80 .\"O initializes the signal set given by
81 .\"O .I set
82 .\"O to empty, with all signals excluded from the set.
83 .BR sigemptyset ()
84 ¤Ï
85 .I set
86 ¤ÇÍ¿¤¨¤é¤ì¤¿¥·¥°¥Ê¥ë½¸¹ç¤ò¶õ¤Ë½é´ü²½¤·¡¢¥·¥°¥Ê¥ë¤¬°ì¤Ä¤â
87 ´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾õÂ֤ˤ¹¤ë¡£
88 .PP
89 .\"O .BR sigfillset ()
90 .\"O initializes
91 .\"O .I set
92 .\"O to full, including all signals.
93 .BR sigfillset ()
94 ¤Ï
95 .I set
96 ¤ÇÍ¿¤¨¤é¤ì¤¿¥·¥°¥Ê¥ë½¸¹ç¤¬Á´¤Æ¤Î¥·¥°¥Ê¥ë¤ò´Þ¤à¤è¤¦¤Ë¤¹¤ë¡£
97 .PP
98 .\"O .BR sigaddset ()
99 .\"O and
100 .\"O .BR sigdelset ()
101 .\"O add and delete respectively signal
102 .\"O .I signum
103 .\"O from
104 .\"O .IR set .
105 .BR sigaddset ()
106 ¤È
107 .BR sigdelset ()
108 ¤Ï
109 .I set
110 ¤Ë
111 .I signum
112 ¥·¥°¥Ê¥ë¤ò¤½¤ì¤¾¤ì²Ã¤¨¤¿¤ê¡¢ºï½ü¤·¤¿¤ê¤¹¤ë¡£
113 .PP
114 .\"O .BR sigismember ()
115 .\"O tests whether
116 .\"O .I signum
117 .\"O is a member of
118 .\"O .I set .
119 .BR sigismember ()
120 ¤Ï
121 .I signum
122 ¤¬
123 .I set
124 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Æ¥¹¥È¤¹¤ë¡£
125 .PP
126 .\"O Objects of type
127 .\"O .I sigset_t
128 .\"O must be initialized by a call to either
129 .\"O .BR sigemptyset ()
130 .\"O or
131 .\"O .BR sigfillset ()
132 .\"O before being passed to the functions
133 .\"O .BR sigaddset (),
134 .\"O .BR sigdelset ()
135 .\"O and
136 .\"O .BR sigismember ()
137 .\"O or the additional glibc functions described below
138 .\"O .RB ( sigisemptyset (),
139 .\"O .BR sigandset (),
140 .\"O and
141 .\"O .BR sigorset ()).
142 .\"O The results are undefined if this is not done.
143 .I sigset_t
144 ·¿¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢´Ø¿ô
145 .BR sigaddset (),
146 .BR sigdelset (),
147 .BR sigismember ()
148 ¤ä¸å½Ò¤Î glibc ¤ÎÄɲôؿô
149 .RB ( sigisemptyset (),
150 .BR sigandset (),
151 .BR sigorset ())
152 ¤ËÅϤ¹Á°¤Ë¡¢
153 .BR sigemptyset ()
154 ¤«
155 .BR sigfillset ()
156 ¤ò¸Æ¤Ó½Ð¤·¤Æ½é´ü²½¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
157 ½é´ü²½¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Î·ë²Ì¤Ï̤ÄêµÁ¤Ç¤¢¤ë¡£
158 .\"O .SH "RETURN VALUE"
159 .SH ÊÖ¤êÃÍ
160 .\"O .BR sigemptyset (),
161 .\"O .BR sigfillset (),
162 .\"O .BR sigaddset (),
163 .\"O and
164 .\"O .BR sigdelset ()
165 .\"O return 0 on success and \-1 on error.
166 .BR sigemptyset (),
167 .BR sigfillset (),
168 .BR sigaddset (),
169 .BR sigdelset ()
170 ¤ÏÀ®¸ù¤¹¤ì¤Ð 0 ¤ò¡¢¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
171 .PP
172 .\"O .BR sigismember ()
173 .\"O returns 1 if
174 .\"O .I signum
175 .\"O is a member of
176 .\"O .IR set ,
177 .\"O 0 if
178 .\"O .I signum
179 .\"O is not a member, and \-1 on error.
180 .BR sigismember ()
181 ¤Ï
182 .I signum
183 ¤¬
184 .I set
185 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ì¤Ð 1 ¤òÊÖ¤·¡¢´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 0 ¤òÊÖ¤¹¡£
186 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
187 .\"O .SH ERRORS
188 .SH ¥¨¥é¡¼
189 .TP
190 .B EINVAL
191 .\"O .I sig
192 .\"O is not a valid signal.
193 .I sig
194 ¤¬Í­¸ú¤Ê¥·¥°¥Ê¥ë¤Ç¤Ï¤Ê¤¤¡£
195 .\"O .SH "CONFORMING TO"
196 .SH ½àµò
197 POSIX.1-2001.
198 .\"O .SH NOTES
199 .\"O .SS Glibc Notes
200 .SH Ãí°Õ
201 .SS glibc ¤Ç¤ÎÃí°Õ
202 .\"O If the
203 .\"O .B _GNU_SOURCE
204 .\"O feature test macro is defined, then \fI<signal.h>\fP
205 .\"O exposes three other functions for manipulating signal
206 .\"O sets.
207 .B _GNU_SOURCE
208 µ¡Ç½¸¡ºº¥Þ¥¯¥í¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¡¢
209 \fI<signal.h>\fP ¤Ç¥·¥°¥Ê¥ë½¸¹ç¤òÁàºî¤¹¤ë 3¤Ä¤Î´Ø¿ô¤¬ÄɲäǸø³«¤µ¤ì¤ë¡£
210 .TP
211 .BI "int sigisemptyset(sigset_t *" set );
212 .\"O returns 1 if
213 .\"O .I set
214 .\"O contains no signals, and 0 otherwise.
215 .I set
216 ¤Ë¥·¥°¥Ê¥ë¤¬°ì¤Ä¤â´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 1 ¤òÊÖ¤·¡¢
217 ¤½¤ì°Ê³°¤Ï 0 ¤òÊÖ¤¹¡£
218 .TP
219 .BI "int sigorset(sigset_t *" dest ", sigset_t *" left \
220 ", sigset_t *" right );
221 .\"O places the union of the sets
222 .\"O .I left
223 .\"O and
224 .\"O .I right
225 .\"O in
226 .\"O .IR dest .
227 ¥·¥°¥Ê¥ë½¸¹ç
228 .I left
229 ¤È
230 .I left
231 ¤ÎϽ¸¹ç¤ò
232 .I dest
233 ¤Ë½ñ¤­¹þ¤à¡£
234 .TP
235 .BI "int sigandset(sigset_t *" dest ", sigset_t *" left \
236 ", sigset_t *" right );
237 .\"O places the intersection of the sets
238 .\"O .I left
239 .\"O and
240 .\"O .I right
241 .\"O in
242 .\"O .IR dest .
243 ¥·¥°¥Ê¥ë½¸¹ç
244 .I left
245 ¤È
246 .I left
247 ¤ÎÀѽ¸¹ç¤ò
248 .I dest
249 ¤Ë½ñ¤­¹þ¤à¡£
250 .PP
251 .\"O .BR sigorset ()
252 .\"O and
253 .\"O .BR sigandset ()
254 .\"O return 0 on success, and \-1 on failure.
255 .BR sigorset ()
256 ¤È
257 .BR sigandset ()
258 ¤ÏÀ®¸ù¤¹¤ë¤È 0 ¤ò¡¢¼ºÇÔ¤¹¤ë¤È \-1 ¤òÊÖ¤¹¡£
259 .PP
260 .\"O These functions are nonstandard (a few other systems provide similar
261 .\"O functions) and their use should be avoided in portable applications.
262 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÈóɸ½à¤Ç¤¢¤ê¡¢(¾¤Ë¤âƱÍͤδؿô¤òÄ󶡤·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤â
263 ¤¤¤¯¤Ä¤«¤Ï¤¢¤ë¤¬) °Ü¿¢À­¤ò¹Íθ¤·¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï»ÈÍѤòÈò¤±¤ë¤Ù¤­
264 ¤Ç¤¢¤ë¡£
265 .\"O .SH "SEE ALSO"
266 .SH ´ØÏ¢¹àÌÜ
267 .BR sigaction (2),
268 .BR sigpending (2),
269 .BR sigprocmask (2),
270 .BR sigsuspend (2)