1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
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 .\" This replaces an earlier man page written by Walter Harms
24 .\" <walter.harms@informatik.uni-oldenburg.de>.
26 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI, all rights reserved.
27 .\" Translated Mon Feb 2 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
29 .\"WORD: broken 正しく実装されていない
31 .TH GSIGNAL 3 2007-07-26 "" "Linux Programmer's Manual"
33 .\"O gsignal, ssignal \- software signal facility
35 gsignal, ssignal \- ソフトウェア・シグナル機能
39 .B #include <signal.h>
41 .B typedef void (*sighandler_t)(int);
43 .BI "int gsignal(int " signum );
45 .BI "sighandler_t ssignal(int " signum ", sighandler_t " action );
49 .\"O Feature Test Macro Requirements for glibc (see
50 .\"O .BR feature_test_macros (7)):
52 .RB ( feature_test_macros (7)
61 .\"O Don't use these functions under Linux.
62 Linux ではこれらの関数を使用しないこと。
63 .\"O Due to a historical mistake, under Linux these functions are
79 .\"O Elsewhere, on System V-like systems, these functions implement
80 .\"O software signaling, entirely independent of the classical
87 .\"O defines the action to take when the software signal with
90 .\"O is raised using the function
92 .\"O and returns the previous such action or
94 一方、System V 風のシステムでは、これらの関数で、
100 ソフトウェア・シグナリングを実現している。
106 関数を使って発生された時にとるべきアクションを定義する。
108 の返り値は、一つ前に指定されていたアクション、もしくは
113 .\"O does the following: if no action (or the action
118 .\"O then it does nothing and returns 0.
121 .\"O was specified for
123 .\"O then it does nothing and returns 1.
124 .\"O Otherwise, it resets the action to
127 .\"O the action function with argument
129 .\"O and returns the value returned by that function.
130 .\"O The range of possible values
132 .\"O varies (often 1-15 or 1-17).
136 に対してアクションが指定されていないか、アクション
138 が指定されていた場合、何もせずに 0 を返す。
142 が指定されていた場合、何もせずに 1 を返す。
147 を指定してアクション関数を呼び出して、アクション関数の返り値を返す。
149 がとり得る値の範囲は実装により異なる (多くの場合 1〜15 か 1〜17 である)。
150 .\"O .SH "CONFORMING TO"
152 .\"O These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
153 .\"O They are called obsolete under most of these systems, and are
154 .\"O broken under Linux libc and glibc.
155 これらの関数は、AIX, DG/UX, HP-UX, SCO, Solaris, Tru64 で使用可能である。
156 これらのシステムのほとんどで廃止されたことになっており、
157 Linux の libc および glibc では正しく実装されていない。
158 .\"O Some systems also have
159 .\"O .BR gsignal_r ()
161 .\"O .BR ssignal_r ().