OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / gsignal.3
1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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 .\" %%%LICENSE_END
24 .\"
25 .\" This replaces an earlier man page written by Walter Harms
26 .\" <walter.harms@informatik.uni-oldenburg.de>.
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .TH GSIGNAL 3 2007\-07\-26 "" "Linux Programmer's Manual"
33 .SH 名前
34 gsignal, ssignal \- ソフトウェア・シグナル機能
35 .SH 書式
36 .nf
37 \fB#include <signal.h>\fP
38 .sp
39 \fBtypedef void (*sighandler_t)(int);\fP
40 .sp
41 \fBint gsignal(int \fP\fIsignum\fP\fB);\fP
42 .sp
43 \fBsighandler_t ssignal(int \fP\fIsignum\fP\fB, sighandler_t \fP\fIaction\fP\fB);\fP
44 .fi
45 .sp
46 .in -4n
47 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
48 .in
49 .sp
50 \fBgsignal\fP(), \fBssignal\fP(): _SVID_SOURCE
51 .SH 説明
52 Linux ではこれらの関数を使用しないこと。 過去に間違いがあり、Linux では \fBgsignal\fP()  と \fBssignal\fP()
53 はそれぞれ \fBraise\fP(3)  と \fBsignal\fP(2)  の別名になっている。
54 .LP
55 一方、System V 風のシステムでは、これらの関数で、 従来の \fBsignal\fP(2)  や \fBkill\fP(2)  の関数群とは完全に独立な、
56 ソフトウェア・シグナリングを実現している。 \fBssignal\fP()  関数は、番号 \fIsignum\fP のソフトウェア・シグナルが
57 \fBgsignal\fP()  関数を使って発生された時にとるべきアクションを定義する。 \fBgsignal\fP()
58 の返り値は、一つ前に指定されていたアクション、もしくは \fBSIG_DFL\fP である。 \fBgsignal\fP()  は以下のような動作を行う:
59 \fIsignum\fP に対してアクションが指定されていないか、アクション \fBSIG_DFL\fP が指定されていた場合、何もせずに 0 を返す。
60 \fIsignum\fP に対して アクション \fBSIG_IGN\fP が指定されていた場合、何もせずに 1 を返す。 それ以外の場合、アクションを
61 \fBSIG_DFL\fP にリセットし、引き数に \fIsignum\fP を指定してアクション関数を呼び出して、アクション関数の返り値を返す。
62 \fIsignum\fP がとり得る値の範囲は実装により異なる (多くの場合 1〜15 か 1〜17 である)。
63 .SH 準拠
64 これらの関数は、AIX, DG/UX, HP\-UX, SCO, Solaris, Tru64 で使用可能である。
65 これらのシステムのほとんどで廃止されたことになっており、 Linux の libc および glibc では正しく実装されていない。
66 \fBgsignal_r\fP()  と \fBssignal_r\fP()  が実装されているシステムもある。
67 .SH 関連項目
68 \fBkill\fP(2), \fBsignal\fP(2), \fBraise\fP(3)
69 .SH この文書について
70 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
71 である。プロジェクトの説明とバグ報告に関する情報は
72 http://www.kernel.org/doc/man\-pages/ に書かれている。