OSDN Git Service

LDP: Update draft based on the previous commit
[linuxjm/jm.git] / manual / LDP_man-pages / 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 .\"
33 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI, all rights reserved.
34 .\" Translated Mon Feb  2 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\"
36 .TH GSIGNAL 3 2020\-04\-11 "" "Linux Programmer's Manual"
37 .SH 名前
38 gsignal, ssignal \- ソフトウェアシグナル機能
39 .SH 書式
40 .nf
41 \fB#include <signal.h>\fP
42 .PP
43 \fBtypedef void (*sighandler_t)(int);\fP
44 .PP
45 \fBint gsignal(int \fP\fIsignum\fP\fB);\fP
46 .PP
47 \fBsighandler_t ssignal(int \fP\fIsignum\fP\fB, sighandler_t \fP\fIaction\fP\fB);\fP
48 .fi
49 .PP
50 .RS -4
51 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
52 .RE
53 .PP
54 \fBgsignal\fP(),
55 \fBssignal\fP():
56     Since glibc 2.19:
57         _DEFAULT_SOURCE
58     Glibc 2.19 and earlier:
59         _SVID_SOURCE
60 .SH 説明
61 Linux ではこれらの関数を使用しないこと。 過去に間違いがあり、Linux では \fBgsignal\fP()  と \fBssignal\fP()
62 はそれぞれ \fBraise\fP(3)  と \fBsignal\fP(2)  の別名になっている。
63 .PP
64 Elsewhere, on System V\-like systems, these functions implement software
65 signaling, entirely independent of the classical \fBsignal\fP(2)  and
66 \fBkill\fP(2)  functions.  The function \fBssignal\fP()  defines the action to
67 take when the software signal with number \fIsignum\fP is raised using the
68 function \fBgsignal\fP(), and returns the previous such action or \fBSIG_DFL\fP.
69 The function \fBgsignal\fP()  does the following: if no action (or the action
70 \fBSIG_DFL\fP)  was specified for \fIsignum\fP, then it does nothing and returns
71 0.  If the action \fBSIG_IGN\fP was specified for \fIsignum\fP, then it does
72 nothing and returns 1.  Otherwise, it resets the action to \fBSIG_DFL\fP and
73 calls the action function with argument \fIsignum\fP, and returns the value
74 returned by that function.  The range of possible values \fIsignum\fP varies
75 (often 1\(en15 or 1\(en17).
76 .SH 属性
77 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。
78 .TS
79 allbox;
80 lb lb lb
81 l l l.
82 インターフェース        属性  値
83 T{
84 \fBgsignal\fP()
85 T}      Thread safety   MT\-Safe
86 T{
87 \fBssignal\fP()
88 T}      Thread safety   MT\-Safe sigintr
89 .TE
90 .sp 1
91 .SH 準拠
92 .\" Linux libc and
93 These functions are available under AIX, DG/UX, HP\-UX, SCO, Solaris, Tru64.
94 They are called obsolete under most of these systems, and are broken under
95 glibc.  Some systems also have \fBgsignal_r\fP()  and \fBssignal_r\fP().
96 .SH 関連項目
97 \fBkill\fP(2), \fBsignal\fP(2), \fBraise\fP(3)
98 .SH この文書について
99 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
100 \%https://www.kernel.org/doc/man\-pages/ に書かれている。