OSDN Git Service

bf6bac4b900a6db7762c9e65151e699fbefba77f
[linuxjm/LDP_man-pages.git] / draft / man3 / strsignal.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
4 .\"     all rights reserved.
5 .\" Translated Fri Dec 26 13:13:20 JST 1997
6 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
7 .\" Modified Thu Dec 8 05:09:52 JST 1999
8 .\"     by Kentaro Shirakata <argrath@yo.rim.or.jp>
9 .\"
10 .\" Permission is granted to make and distribute verbatim copies of this
11 .\" manual provided the copyright notice and this permission notice are
12 .\" preserved on all copies.
13 .\"
14 .\" Permission is granted to copy and distribute modified versions of this
15 .\" manual under the conditions for verbatim copying, provided that the
16 .\" entire resulting derived work is distributed under the terms of a
17 .\" permission notice identical to this one.
18 .\"
19 .\" Since the Linux kernel and libraries are constantly changing, this
20 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
21 .\" responsibility for errors or omissions, or for damages resulting from
22 .\" the use of the information contained herein.  The author(s) may not
23 .\" have taken the same level of care in the production of this manual,
24 .\" which is licensed free of charge, as they might when working
25 .\" professionally.
26 .\"
27 .\" Formatted or processed versions of this manual, if unaccompanied by
28 .\" the source, must acknowledge the copyright and authors of this work.
29 .\"
30 .\" References consulted:
31 .\"     Linux libc source code
32 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
33 .\"     386BSD man pages
34 .\" Modified Sat Jul 24 17:59:03 1993 by Rik Faith (faith@cs.unc.edu)
35 .TH STRSIGNAL 3 2010-09-15 "GNU" "Linux Programmer's Manual"
36 .SH Ì¾Á°
37 strsignal \- ¥·¥°¥Ê¥ë¤òÀâÌÀ¤¹¤ëʸ»úÎó¤òÊÖ¤¹
38 .SH ½ñ¼°
39 .nf
40 .B #include <string.h>
41 .sp
42 .BI "char *strsignal(int " sig );
43 .sp
44 .BI "extern const char * const " sys_siglist [];
45 .fi
46 .sp
47 .in -4n
48 .\"O Feature Test Macro Requirements for glibc (see
49 .\"O .BR feature_test_macros (7)):
50 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
51 .RB ( feature_test_macros (7)
52 »²¾È):
53 .in
54 .sp
55 .BR strsignal ():
56 .PD 0
57 .ad l
58 .RS 4
59 .TP 4
60 .\"O Since glibc 2.10:
61 glibc 2.10 °Ê¹ß:
62 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
63 .TP
64 .\"O Before glibc 2.10:
65 glibc 2.10 ¤è¤êÁ°:
66 _GNU_SOURCE
67 .RE
68 .ad
69 .PD
70 .\"O .SH DESCRIPTION
71 .SH ÀâÌÀ
72 .BR strsignal ()
73 ´Ø¿ô¤Ï¡¢°ú¿ô \fIsig\fP ¤ÇÅϤµ¤ì¤¿¥·¥°¥Ê¥ëÈÖ¹æ¤ò
74 ÀâÌÀ¤¹¤ëʸ»úÎó¤òÊÖ¤¹¡£
75 ʸ»úÎó¤Ï¡¢¼¡¤Î
76 .BR strsignal ()
77 ¤¬¸Æ¤Ð¤ì¤ë¤Þ¤Ç¤Î´Ö¤À¤±»ÈÍѤǤ­¤ë¡£
78 .PP
79 .\"O The array \fIsys_siglist\fP holds the signal description strings
80 .\"O indexed by signal number.
81 .\"O The
82 .\"O .BR strsignal ()
83 .\"O function should be
84 .\"O used if possible instead of this array.
85 ÇÛÎó \fIsys_siglist\fP ¤Ï¥·¥°¥Ê¥ë¤òÀâÌÀ¤¹¤ëʸ»úÎó¤òÊÝ»ý¤·¤Æ¤ª¤ê¡¢
86 ÇÛÎó¤Ø¤Î¥¢¥¯¥»¥¹¤Ë¤Ï¥·¥°¥Ê¥ëÈÖ¹æ¤òź¤¨»ú¤È¤·¤ÆÍѤ¤¤ë»ö¤¬¤Ç¤­¤ë¡£
87 ½ÐÍè¤ë¤À¤±¤³¤ÎÇÛÎó¤ÎÂå¤ï¤ê¤Ë
88 .BR strsignal ()
89 ´Ø¿ô¤ò
90 »È¤¦¤Ù¤­¤Ç¤¢¤ë¡£
91 .SH ÊÖ¤êÃÍ
92 .\"O The
93 .\"O .BR strsignal ()
94 .\"O function returns the appropriate description
95 .\"O string, or an unknown signal message if the signal number is invalid.
96 .\"O On some systems (but not on Linux), a NULL pointer may be
97 .\"O returned instead for an invalid signal number.
98 .BR strsignal ()
99 ´Ø¿ô¤Ï¡¢¥·¥°¥Ê¥ë¤ÎŬÀÚ¤ÊÀâÌÀ¤òÊÖ¤¹¡£
100 ¤â¤·¥·¥°¥Ê¥ëÈֹ椬ÉÔÀµ¤Ê¾ì¹ç¤Ï¡¢Ì¤ÃΤΥ·¥°¥Ê¥ë(unknown signal)¤ò¼¨¤¹
101 ¥á¥Ã¥»¡¼¥¸¤òÊÖ¤¹¡£
102 (Linux ¤Ï¤½¤¦¤Ç¤Ï¤Ê¤¤¤¬)ÉÔÀµ¤Ê¥·¥°¥Ê¥ëÈÖ¹æ¤ËÂФ·¤Æ¡¢ NULL ¥Ý¥¤¥ó¥¿¤ò
103 ÊÖ¤¹¥·¥¹¥Æ¥à¤â¤¢¤ë¡£
104 .\"O .SH "CONFORMING TO"
105 .SH ½àµò
106 POSIX.1-2008.
107 .\"O Present on Solaris and the BSDs.
108 Solaris ¤È BSD ·Ï¤Ë¤â¸ºß¤¹¤ë¡£
109 .SH ´ØÏ¢¹àÌÜ
110 .BR psignal (3),
111 .BR strerror (3)