1 .\" Copyright (c) 2007 Michael Kerrisk <mtk.manpages@gmail.com>
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 .\" Japanese Version Copyright (c) 2007 Akihiro MOTOKI
24 .\" all rights reserved.
25 .\" Translated 2007-06-02, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
27 .\"WORD: reliable 信頼性のある
28 .\"WORD: unreliable 信頼性に欠ける
29 .\"WORD: signal semantics シグナル処理方式
31 .TH SYSV_SIGNAL 3 2007-05-04 "" "Linux Programmer's Manual"
34 .\"O sysv_signal \- signal handling with System V semantics
35 sysv_signal \- System V 方式のシグナル処理
38 .\"O .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
39 .BR "#define _GNU_SOURCE" " /* feature_test_macros(7) 参照 */"
41 .B #include <signal.h>
43 .B typedef void (*sighandler_t)(int);
45 .BI "sighandler_t sysv_signal(int " signum ", sighandler_t " handler );
49 .\"O .BR sysv_signal ()
50 .\"O function takes the same arguments, and performs the same task, as
58 .\"O .BR sysv_signal ()
59 .\"O provides the System V unreliable signal semantics, that is:
60 .\"O a) the disposition of the signal is reset to the default
61 .\"O when the handler is invoked;
62 .\"O b) delivery of further instances of the signal is not blocked while
63 .\"O the signal handler is executing; and
64 .\"O c) if the handler interrupts (certain) blocking system calls,
65 .\"O then the system call is not automatically restarted.
68 は System V の信頼性に欠けるシグナル処理方式を提供している。
69 信頼性に欠けるシグナル処理方式は以下の特徴を持つ。
70 a) ハンドラが起動されると、シグナルの処理方法 (disposition) が
72 b) シグナルハンドラの実行中は、それ以降に発生した同じシグナルの配送が
74 c) ハンドラが停止中の (blocking している) システムコールを中断した場合、
76 .\"O .SH "RETURN VALUE"
79 .\"O .BR sysv_signal ()
80 .\"O function returns the previous value of the signal handler, or
94 .\"O .SH "CONFORMING TO"
96 .\"O This function is nonstandard.
101 .\"O .BR sysv_signal ()
102 .\"O should be avoided; use
103 .\"O .BR sigaction (2)
110 .\"O On older Linux systems,
111 .\"O .BR sysv_signal ()
114 .\"O were equivalent.
115 .\"O But on newer systems,
117 .\"O provides reliable signal semantics; see
124 は等価であった。しかし、新しめのシステムでは、
126 は信頼性のあるシグナル処理方式を提供している。
133 .\"O is a GNU extension;
134 .\"O this type is only defined if
135 .\"O this type is only defined if
138 .\"O feature test macro is defined.
140 を使っているのは GNU による拡張である。