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 BSD_SIGNAL 3 2009-03-15 "" "Linux Programmer's Manual"
33 bsd_signal \- BSD 方式のシグナル処理
35 .BR "#define _XOPEN_SOURCE" " /* feature_test_macros(7) 参照 */"
37 .B #include <signal.h>
39 .B typedef void (*sighandler_t)(int);
41 .BI "sighandler_t bsd_signal(int " signum ", sighandler_t " handler );
50 では信頼性のあるシグナル処理方式の提供が保証されていることである。
51 信頼性のあるシグナル処理方式は以下の特徴を持つ。
52 a) ハンドラが起動された場合に、シグナルの処理方法 (disposition) が
54 b) シグナルハンドラの実行中は、それ以降に発生した同じシグナルの配送が
56 c) ハンドラが停止中の (blocking している) システムコールを
57 中断した場合、そのシステムコールが自動的に再開される。
60 でこれらが保証されることを前提にすべきではない。
90 は信頼性に欠けるシグナル処理方式を提供していた。
96 を使っているのは GNU による拡張である。