OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / strsignal.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 17:59:03 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 STRSIGNAL 3 2010\-09\-15 GNU "Linux Programmer's Manual"
34 .SH 名前
35 strsignal \- シグナルを説明する文字列を返す
36 .SH 書式
37 .nf
38 \fB#include <string.h>\fP
39 .sp
40 \fBchar *strsignal(int \fP\fIsig\fP\fB);\fP
41 .sp
42 \fBextern const char * const \fP\fIsys_siglist\fP\fB[];\fP
43 .fi
44 .sp
45 .in -4n
46 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
47 .in
48 .sp
49 \fBstrsignal\fP():
50 .PD 0
51 .ad l
52 .RS 4
53 .TP  4
54 glibc 2.10 以降:
55 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
56 .TP 
57 glibc 2.10 より前:
58 _GNU_SOURCE
59 .RE
60 .ad
61 .PD
62 .SH 説明
63 \fBstrsignal\fP()  関数は、引数 \fIsig\fP で渡されたシグナル番号を 説明する文字列を返す。 文字列は、次の
64 \fBstrsignal\fP()  が呼ばれるまでの間だけ使用できる。
65 .PP
66 配列 \fIsys_siglist\fP はシグナルを説明する文字列を保持しており、 配列へのアクセスにはシグナル番号を添え字として用いる事ができる。
67 出来るだけこの配列の代わりに \fBstrsignal\fP()  関数を 使うべきである。
68 .SH 返り値
69 \fBstrsignal\fP()  関数は、シグナルの適切な説明を返す。 もしシグナル番号が不正な場合は、未知のシグナル(unknown
70 signal)を示す メッセージを返す。 (Linux はそうではないが)不正なシグナル番号に対して、 NULL ポインタを 返すシステムもある。
71 .SH 準拠
72 POSIX.1\-2008.  Solaris と BSD 系にも存在する。
73 .SH 関連項目
74 \fBpsignal\fP(3), \fBstrerror\fP(3)