OSDN Git Service

10fd6faef3a721b80a4de989a9455fb28e879971
[linuxjm/LDP_man-pages.git] / draft / man3 / psignal.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:19:15 JST 1997
6 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
7 .\"
8 .\" Permission is granted to make and distribute verbatim copies of this
9 .\" manual provided the copyright notice and this permission notice are
10 .\" preserved on all copies.
11 .\"
12 .\" Permission is granted to copy and distribute modified versions of this
13 .\" manual under the conditions for verbatim copying, provided that the
14 .\" entire resulting derived work is distributed under the terms of a
15 .\" permission notice identical to this one.
16 .\"
17 .\" Since the Linux kernel and libraries are constantly changing, this
18 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
19 .\" responsibility for errors or omissions, or for damages resulting from
20 .\" the use of the information contained herein.  The author(s) may not
21 .\" have taken the same level of care in the production of this manual,
22 .\" which is licensed free of charge, as they might when working
23 .\" professionally.
24 .\"
25 .\" Formatted or processed versions of this manual, if unaccompanied by
26 .\" the source, must acknowledge the copyright and authors of this work.
27 .\"
28 .\" References consulted:
29 .\"     Linux libc source code
30 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
31 .\"     386BSD man pages
32 .\" Modified Sat Jul 24 18:45:17 1993 by Rik Faith (faith@cs.unc.edu)
33 .\" FIXME glibc 2.10 adds psiginfo(), specified in SUSv4.  This function
34 .\" should be documented, probably on this page.
35 .TH PSIGNAL 3  2008-08-21 "GNU" "Linux Programmer's Manual"
36 .\"O .SH NAME
37 .SH Ì¾Á°
38 .\"O psignal \- print signal message
39 psignal \- ¥·¥°¥Ê¥ë¥á¥Ã¥»¡¼¥¸¤òɽ¼¨
40 .\"O .SH SYNOPSIS
41 .SH ½ñ¼°
42 .nf
43 .B #include <signal.h>
44 .sp
45 .BI "void psignal(int " sig ", const char *" s );
46 .sp
47 .BI "extern const char *const " sys_siglist [];
48 .fi
49 .sp
50 .in -4n
51 .\"O Feature Test Macro Requirements for glibc (see
52 .\"O .BR feature_test_macros (7)):
53 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
54 .RB ( feature_test_macros (7)
55 »²¾È):
56 .in
57 .sp
58 .BR psignal ():
59 _SVID_SOURCE || _BSD_SOURCE
60 .br
61 .IR sys_siglist :
62 _BSD_SOURCE
63 \"O .SH DESCRIPTION
64 .SH ÀâÌÀ
65 .\"O The
66 .\"O .BR psignal ()
67 .\"O function displays a message on \fIstderr\fP
68 .\"O consisting of the string \fIs\fP, a colon, a space, and a string
69 .\"O describing the signal number \fIsig\fP.
70 .\"O If \fIsig\fP is invalid,
71 .\"O the message displayed will indicate an unknown signal.
72 .BR psignal ()
73 ´Ø¿ô¤Ï¡¢Ê¸»úÎó \fIs\fP¡¢¥³¥í¥ó¡¢¥¹¥Ú¡¼¥¹¡¢
74 ¥·¥°¥Ê¥ëÈÖ¹æ \fIsig\fP ¤òÀâÌÀ¤¹¤ëʸ»úÎ󤫤鹽À®¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ò
75 \fIstderr\fP ¤Ëɽ¼¨¤¹¤ë¡£¤â¤· \fIsig\fP ¤¬ÉÔÀµ¤Ê¤é¤Ð¡¢É½¼¨¤µ¤ì¤ë
76 ¥á¥Ã¥»¡¼¥¸¤Ï̤ÃΤΥ·¥°¥Ê¥ë¤ò¼¨¤¹¡£
77 .PP
78 .\"O The array \fIsys_siglist\fP holds the signal description strings
79 .\"O indexed by signal number.
80 ÇÛÎó \fIsys_siglist\fP ¤Ï¥·¥°¥Ê¥ë¤òÀâÌÀ¤¹¤ëʸ»úÎó¤òÊÝ»ý¤·¤Æ¤ª¤ê¡¢
81 ÇÛÎó¤Ø¤Î¥¢¥¯¥»¥¹¤Ë¤Ï¥·¥°¥Ê¥ëÈÖ¹æ¤òź¤¨»ú¤È¤·¤ÆÍѤ¤¤ë»ö¤¬¤Ç¤­¤ë¡£
82 .\"O .SH "RETURN VALUE"
83 .SH ÊÖ¤êÃÍ
84 .\"O The
85 .\"O .BR psignal ()
86 .\"O function returns no value.
87 .BR psignal ()
88 ´Ø¿ô¤Ï¡¢ÃͤòÊÖ¤µ¤Ê¤¤¡£
89 .\"O .SH "CONFORMING TO"
90 .SH ½àµò
91 POSIX.1-2008, 4.3BSD.
92 .\"O .SH "SEE ALSO"
93 .SH ´ØÏ¢¹àÌÜ
94 .BR perror (3),
95 .BR strsignal (3)