OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / 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 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\"     all rights reserved.
31 .\" Translated Fri Dec 26 13:13:20 JST 1997
32 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
33 .\" Modified Thu Dec 8 05:09:52 JST 1999
34 .\"     by Kentaro Shirakata <argrath@yo.rim.or.jp>
35 .\"
36 .TH STRSIGNAL 3 2010-09-15 "GNU" "Linux Programmer's Manual"
37 .SH 名前
38 strsignal \- シグナルを説明する文字列を返す
39 .SH 書式
40 .nf
41 .B #include <string.h>
42 .sp
43 .BI "char *strsignal(int " sig );
44 .sp
45 .BI "extern const char * const " sys_siglist [];
46 .fi
47 .sp
48 .in -4n
49 .\"O Feature Test Macro Requirements for glibc (see
50 .\"O .BR feature_test_macros (7)):
51 glibc 向けの機能検査マクロの要件
52 .RB ( feature_test_macros (7)
53 参照):
54 .in
55 .sp
56 .BR strsignal ():
57 .PD 0
58 .ad l
59 .RS 4
60 .TP 4
61 .\"O Since glibc 2.10:
62 glibc 2.10 以降:
63 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
64 .TP
65 .\"O Before glibc 2.10:
66 glibc 2.10 より前:
67 _GNU_SOURCE
68 .RE
69 .ad
70 .PD
71 .\"O .SH DESCRIPTION
72 .SH 説明
73 .BR strsignal ()
74 関数は、引数 \fIsig\fP で渡されたシグナル番号を
75 説明する文字列を返す。
76 文字列は、次の
77 .BR strsignal ()
78 が呼ばれるまでの間だけ使用できる。
79 .PP
80 .\"O The array \fIsys_siglist\fP holds the signal description strings
81 .\"O indexed by signal number.
82 .\"O The
83 .\"O .BR strsignal ()
84 .\"O function should be
85 .\"O used if possible instead of this array.
86 配列 \fIsys_siglist\fP はシグナルを説明する文字列を保持しており、
87 配列へのアクセスにはシグナル番号を添え字として用いる事ができる。
88 出来るだけこの配列の代わりに
89 .BR strsignal ()
90 関数を
91 使うべきである。
92 .SH 返り値
93 .\"O The
94 .\"O .BR strsignal ()
95 .\"O function returns the appropriate description
96 .\"O string, or an unknown signal message if the signal number is invalid.
97 .\"O On some systems (but not on Linux), a NULL pointer may be
98 .\"O returned instead for an invalid signal number.
99 .BR strsignal ()
100 関数は、シグナルの適切な説明を返す。
101 もしシグナル番号が不正な場合は、未知のシグナル(unknown signal)を示す
102 メッセージを返す。
103 (Linux はそうではないが)不正なシグナル番号に対して、 NULL ポインタを
104 返すシステムもある。
105 .\"O .SH "CONFORMING TO"
106 .SH 準拠
107 POSIX.1-2008.
108 .\"O Present on Solaris and the BSDs.
109 Solaris と BSD 系にも存在する。
110 .SH 関連項目
111 .BR psignal (3),
112 .BR strerror (3)