OSDN Git Service

edee16dbc007a6455853883b4324cb8c769f22c8
[linuxjm/LDP_man-pages.git] / draft / 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 .\" FIXME glibc 2.10 adds psiginfo(), specified in SUSv4.  This function
29 .\" should be documented, probably on this page.
30 .\"
31 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
32 .\"     all rights reserved.
33 .\" Translated Fri Dec 26 13:19:15 JST 1997
34 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
35 .\"
36 .TH PSIGNAL 3  2008-08-21 "GNU" "Linux Programmer's Manual"
37 .\"O .SH NAME
38 .SH 名前
39 .\"O psignal \- print signal message
40 psignal \- シグナルメッセージを表示
41 .\"O .SH SYNOPSIS
42 .SH 書式
43 .nf
44 .B #include <signal.h>
45 .sp
46 .BI "void psignal(int " sig ", const char *" s );
47 .sp
48 .BI "extern const char *const " sys_siglist [];
49 .fi
50 .sp
51 .in -4n
52 .\"O Feature Test Macro Requirements for glibc (see
53 .\"O .BR feature_test_macros (7)):
54 glibc 向けの機能検査マクロの要件
55 .RB ( feature_test_macros (7)
56 参照):
57 .in
58 .sp
59 .BR psignal ():
60 _SVID_SOURCE || _BSD_SOURCE
61 .br
62 .IR sys_siglist :
63 _BSD_SOURCE
64 \"O .SH DESCRIPTION
65 .SH 説明
66 .\"O The
67 .\"O .BR psignal ()
68 .\"O function displays a message on \fIstderr\fP
69 .\"O consisting of the string \fIs\fP, a colon, a space, and a string
70 .\"O describing the signal number \fIsig\fP.
71 .\"O If \fIsig\fP is invalid,
72 .\"O the message displayed will indicate an unknown signal.
73 .BR psignal ()
74 関数は、文字列 \fIs\fP、コロン、スペース、
75 シグナル番号 \fIsig\fP を説明する文字列から構成されるメッセージを
76 \fIstderr\fP に表示する。もし \fIsig\fP が不正ならば、表示される
77 メッセージは未知のシグナルを示す。
78 .PP
79 .\"O The array \fIsys_siglist\fP holds the signal description strings
80 .\"O indexed by signal number.
81 配列 \fIsys_siglist\fP はシグナルを説明する文字列を保持しており、
82 配列へのアクセスにはシグナル番号を添え字として用いる事ができる。
83 .\"O .SH "RETURN VALUE"
84 .SH 返り値
85 .\"O The
86 .\"O .BR psignal ()
87 .\"O function returns no value.
88 .BR psignal ()
89 関数は、値を返さない。
90 .\"O .SH "CONFORMING TO"
91 .SH 準拠
92 POSIX.1-2008, 4.3BSD.
93 .\"O .SH "SEE ALSO"
94 .SH 関連項目
95 .BR perror (3),
96 .BR strsignal (3)