OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / psignal.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified Sat Jul 24 18:45:17 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH PSIGNAL 3 2010\-10\-06 GNU "Linux Programmer's Manual"
36 .SH 名前
37 psignal, psiginfo \- シグナルメッセージを表示
38 .SH 書式
39 .nf
40 \fB#include <signal.h>\fP
41 .sp
42 \fBvoid psignal(int \fP\fIsig\fP\fB, const char *\fP\fIs\fP\fB);\fP
43 \fBvoid psiginfo(const siginfo_t *\fP\fIpinfo\fP\fB, const char *\fP\fIs\fP\fB);\fP
44 .sp
45 \fBextern const char *const \fP\fIsys_siglist\fP\fB[];\fP
46 .fi
47 .sp
48 .in -4n
49 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
50 .in
51 .sp
52 \fBpsignal\fP(): _SVID_SOURCE || _BSD_SOURCE
53 .br
54 \fBpsiginfo\fP(): _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
55 .br
56 \fIsys_siglist\fP: _BSD_SOURCE
57 .SH 説明
58 \fBpsignal\fP() 関数は、文字列 \fIs\fP、コロン、スペース、
59 シグナル番号 \fIsig\fP を説明する文字列、終端の改行から
60 構成されるメッセージを \fIstderr\fP に表示する。
61 文字列 \fIs\fP が NULL か空の場合、コロンとスペースは省略される。
62 \fIsig\fP が不正ならば、表示される メッセージは未知のシグナルを示す。
63
64 The \fBpsiginfo\fP()  function is like \fBpsignal\fP(), except that it displays
65 information about the signal described by \fIpinfo\fP, which should point to a
66 valid \fIsiginfo_t\fP structure.  As well as the signal description,
67 \fBpsiginfo\fP()  displays information about the origin of the signal, and
68 other information relevant to the signal (e.g., the relevant memory address
69 for hardware\-generated signals, the child process ID for \fBSIGCHLD\fP, and the
70 user ID and process ID of the sender, for signals set using \fBkill\fP(2)  or
71 \fBsigqueue\fP(3)).
72
73 配列 \fIsys_siglist\fP はシグナルを説明する文字列を保持しており、 配列へのアクセスにはシグナル番号を添え字として用いる事ができる。
74 .SH 返り値
75 関数 \fBpsignal\fP() と \fBpsiginfo\fP() は、値を返さない。
76 .SH バージョン
77 \fBpsiginfo\fP() 関数は glibc バージョン 2.10 で追加された。
78 .SH 準拠
79 POSIX.1\-2008, 4.3BSD.
80 .SH バグ
81 バージョン 2.12 までの glibc では \fBpsiginfo\fP() には以下のバグがあった。
82 .IP * 3
83 .\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12107
84 .\" Reportedly now fixed; check glibc 2.13
85 In some circumstances, a trailing newline is not printed.
86 .IP *
87 .\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12108
88 .\" Reportedly now fixed; check glibc 2.13
89 Additional details are not displayed for real\-time signals.
90 .SH 関連項目
91 \fBsigaction\fP(2), \fBperror\fP(3), \fBstrsignal\fP(3), \fBsignal\fP(7)
92 .SH この文書について
93 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
94 である。プロジェクトの説明とバグ報告に関する情報は
95 http://www.kernel.org/doc/man\-pages/ に書かれている。