1 .\" Copyright (c) 1994 Mike Battersby
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified by aeb, 960721
24 .\" 2005-11-21, mtk, added descriptions of sigisemptyset(), sigandset(),
26 .\" 2007-10-26 mdw added wording that a sigset_t must be initialized
29 .\"WORD: signal set シグナル集合
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
37 .TH SIGSETOPS 3 2008-09-01 "Linux" "Linux Programmer's Manual"
40 .\"O sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
41 .\"O signal set operations.
42 sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
46 .B #include <signal.h>
48 .BI "int sigemptyset(sigset_t *" set );
50 .BI "int sigfillset(sigset_t *" set );
52 .BI "int sigaddset(sigset_t *" set ", int " signum );
54 .BI "int sigdelset(sigset_t *" set ", int " signum );
56 .BI "int sigismember(const sigset_t *" set ", int " signum );
59 .\"O Feature Test Macro Requirements for glibc (see
60 .\"O .BR feature_test_macros (7)):
62 .RB ( feature_test_macros (7)
73 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
78 .\"O These functions allow the manipulation of POSIX signal sets.
79 これらの関数は POSIX シグナル集合(signal set)を操作するため使用する。
81 .\"O .BR sigemptyset ()
82 .\"O initializes the signal set given by
84 .\"O to empty, with all signals excluded from the set.
88 で与えられたシグナル集合を空に初期化し、シグナルが一つも
91 .\"O .BR sigfillset ()
94 .\"O to full, including all signals.
98 で与えられたシグナル集合が全てのシグナルを含むようにする。
100 .\"O .BR sigaddset ()
102 .\"O .BR sigdelset ()
103 .\"O add and delete respectively signal
114 シグナルをそれぞれ加えたり、削除したりする。
116 .\"O .BR sigismember ()
130 .\"O must be initialized by a call to either
131 .\"O .BR sigemptyset ()
133 .\"O .BR sigfillset ()
134 .\"O before being passed to the functions
135 .\"O .BR sigaddset (),
136 .\"O .BR sigdelset ()
138 .\"O .BR sigismember ()
139 .\"O or the additional glibc functions described below
140 .\"O .RB ( sigisemptyset (),
141 .\"O .BR sigandset (),
143 .\"O .BR sigorset ()).
144 .\"O The results are undefined if this is not done.
151 .RB ( sigisemptyset (),
159 初期化しなかった場合の結果は未定義である。
160 .\"O .SH "RETURN VALUE"
162 .\"O .BR sigemptyset (),
163 .\"O .BR sigfillset (),
164 .\"O .BR sigaddset (),
166 .\"O .BR sigdelset ()
167 .\"O return 0 on success and \-1 on error.
172 は成功すれば 0 を、エラーの場合は \-1 を返す。
174 .\"O .BR sigismember ()
181 .\"O is not a member, and \-1 on error.
187 に含まれていれば 1 を返し、含まれていなければ 0 を返す。
194 .\"O is not a valid signal.
197 .\"O .SH "CONFORMING TO"
206 .\"O feature test macro is defined, then \fI<signal.h>\fP
207 .\"O exposes three other functions for manipulating signal
211 \fI<signal.h>\fP でシグナル集合を操作する 3つの関数が追加で公開される。
213 .BI "int sigisemptyset(sigset_t *" set );
216 .\"O contains no signals, and 0 otherwise.
218 にシグナルが一つも含まれていなければ 1 を返し、
221 .BI "int sigorset(sigset_t *" dest ", sigset_t *" left \
222 ", sigset_t *" right );
223 .\"O places the union of the sets
237 .BI "int sigandset(sigset_t *" dest ", sigset_t *" left \
238 ", sigset_t *" right );
239 .\"O places the intersection of the sets
255 .\"O .BR sigandset ()
256 .\"O return 0 on success, and \-1 on failure.
260 は成功すると 0 を、失敗すると \-1 を返す。
262 .\"O These functions are nonstandard (a few other systems provide similar
263 .\"O functions) and their use should be avoided in portable applications.
264 これらの関数は非標準であり、(他にも同様の関数を提供しているシステムも
265 いくつかはあるが) 移植性を考慮したアプリケーションでは使用を避けるべき