OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / 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 .SH Ì¾Á°
39 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
40 ¥·¥°¥Ê¥ë½¸¹ç¤ÎÁàºî
41 .SH ½ñ¼°
42 .B #include <signal.h>
43 .sp
44 .BI "int sigemptyset(sigset_t *" set );
45 .sp
46 .BI "int sigfillset(sigset_t *" set );
47 .sp
48 .BI "int sigaddset(sigset_t *" set ", int " signum );
49 .sp
50 .BI "int sigdelset(sigset_t *" set ", int " signum );
51 .sp
52 .BI "int sigismember(const sigset_t *" set ", int " signum );
53 .sp
54 .in -4n
55 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
56 .RB ( feature_test_macros (7)
57 »²¾È):
58 .in
59 .sp
60 .ad l
61 .BR sigemptyset (),
62 .BR sigfillset (),
63 .BR sigaddset (),
64 .BR sigdelset (),
65 .BR sigismember ():
66 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
67 .ad b
68 .SH ÀâÌÀ
69 ¤³¤ì¤é¤Î´Ø¿ô¤Ï POSIX ¥·¥°¥Ê¥ë½¸¹ç(signal set)¤òÁàºî¤¹¤ë¤¿¤á»ÈÍѤ¹¤ë¡£
70 .PP
71 .BR sigemptyset ()
72 ¤Ï
73 .I set
74 ¤ÇÍ¿¤¨¤é¤ì¤¿¥·¥°¥Ê¥ë½¸¹ç¤ò¶õ¤Ë½é´ü²½¤·¡¢¥·¥°¥Ê¥ë¤¬°ì¤Ä¤â
75 ´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¾õÂ֤ˤ¹¤ë¡£
76 .PP
77 .BR sigfillset ()
78 ¤Ï
79 .I set
80 ¤ÇÍ¿¤¨¤é¤ì¤¿¥·¥°¥Ê¥ë½¸¹ç¤¬Á´¤Æ¤Î¥·¥°¥Ê¥ë¤ò´Þ¤à¤è¤¦¤Ë¤¹¤ë¡£
81 .PP
82 .BR sigaddset ()
83 ¤È
84 .BR sigdelset ()
85 ¤Ï
86 .I set
87 ¤Ë
88 .I signum
89 ¥·¥°¥Ê¥ë¤ò¤½¤ì¤¾¤ì²Ã¤¨¤¿¤ê¡¢ºï½ü¤·¤¿¤ê¤¹¤ë¡£
90 .PP
91 .BR sigismember ()
92 ¤Ï
93 .I signum
94 ¤¬
95 .I set
96 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò¥Æ¥¹¥È¤¹¤ë¡£
97 .PP
98 .I sigset_t
99 ·¿¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢´Ø¿ô
100 .BR sigaddset (),
101 .BR sigdelset (),
102 .BR sigismember ()
103 ¤ä¸å½Ò¤Î glibc ¤ÎÄɲôؿô
104 .RB ( sigisemptyset (),
105 .BR sigandset (),
106 .BR sigorset ())
107 ¤ËÅϤ¹Á°¤Ë¡¢
108 .BR sigemptyset ()
109 ¤«
110 .BR sigfillset ()
111 ¤ò¸Æ¤Ó½Ð¤·¤Æ½é´ü²½¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
112 ½é´ü²½¤·¤Ê¤«¤Ã¤¿¾ì¹ç¤Î·ë²Ì¤Ï̤ÄêµÁ¤Ç¤¢¤ë¡£
113 .SH ÊÖ¤êÃÍ
114 .BR sigemptyset (),
115 .BR sigfillset (),
116 .BR sigaddset (),
117 .BR sigdelset ()
118 ¤ÏÀ®¸ù¤¹¤ì¤Ð 0 ¤ò¡¢¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
119 .PP
120 .BR sigismember ()
121 ¤Ï
122 .I signum
123 ¤¬
124 .I set
125 ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ì¤Ð 1 ¤òÊÖ¤·¡¢´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 0 ¤òÊÖ¤¹¡£
126 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤¹¡£
127 .SH ¥¨¥é¡¼
128 .TP
129 .B EINVAL
130 .I sig
131 ¤¬Í­¸ú¤Ê¥·¥°¥Ê¥ë¤Ç¤Ï¤Ê¤¤¡£
132 .SH ½àµò
133 POSIX.1-2001.
134 .SH Ãí°Õ
135 .SS glibc ¤Ç¤ÎÃí°Õ
136 .B _GNU_SOURCE
137 µ¡Ç½¸¡ºº¥Þ¥¯¥í¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤È¡¢
138 \fI<signal.h>\fP ¤Ç¥·¥°¥Ê¥ë½¸¹ç¤òÁàºî¤¹¤ë 3¤Ä¤Î´Ø¿ô¤¬ÄɲäǸø³«¤µ¤ì¤ë¡£
139 .TP
140 .BI "int sigisemptyset(sigset_t *" set );
141 .I set
142 ¤Ë¥·¥°¥Ê¥ë¤¬°ì¤Ä¤â´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð 1 ¤òÊÖ¤·¡¢
143 ¤½¤ì°Ê³°¤Ï 0 ¤òÊÖ¤¹¡£
144 .TP
145 .BI "int sigorset(sigset_t *" dest ", sigset_t *" left \
146 ", sigset_t *" right );
147 ¥·¥°¥Ê¥ë½¸¹ç
148 .I left
149 ¤È
150 .I left
151 ¤ÎϽ¸¹ç¤ò
152 .I dest
153 ¤Ë½ñ¤­¹þ¤à¡£
154 .TP
155 .BI "int sigandset(sigset_t *" dest ", sigset_t *" left \
156 ", sigset_t *" right );
157 ¥·¥°¥Ê¥ë½¸¹ç
158 .I left
159 ¤È
160 .I left
161 ¤ÎÀѽ¸¹ç¤ò
162 .I dest
163 ¤Ë½ñ¤­¹þ¤à¡£
164 .PP
165 .BR sigorset ()
166 ¤È
167 .BR sigandset ()
168 ¤ÏÀ®¸ù¤¹¤ë¤È 0 ¤ò¡¢¼ºÇÔ¤¹¤ë¤È \-1 ¤òÊÖ¤¹¡£
169 .PP
170 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÈóɸ½à¤Ç¤¢¤ê¡¢(¾¤Ë¤âƱÍͤδؿô¤òÄ󶡤·¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤â
171 ¤¤¤¯¤Ä¤«¤Ï¤¢¤ë¤¬) °Ü¿¢À­¤ò¹Íθ¤·¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç¤Ï»ÈÍѤòÈò¤±¤ë¤Ù¤­
172 ¤Ç¤¢¤ë¡£
173 .SH ´ØÏ¢¹àÌÜ
174 .BR sigaction (2),
175 .BR sigpending (2),
176 .BR sigprocmask (2),
177 .BR sigsuspend (2)