OSDN Git Service

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