1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
29 .\" Modified Sat Jul 24 18:45:17 1993 by Rik Faith (faith@cs.unc.edu)
30 .TH PSIGNAL 3 2017-09-15 "GNU" "Linux Programmer's Manual"
32 psignal, psiginfo \- print signal description
35 .B #include <signal.h>
37 .BI "void psignal(int " sig ", const char *" s );
38 .BI "void psiginfo(const siginfo_t *" pinfo ", const char *" s );
40 .BI "extern const char *const " sys_siglist [];
44 Feature Test Macro Requirements for glibc (see
45 .BR feature_test_macros (7)):
51 Glibc 2.19 and earlier:
52 _BSD_SOURCE || _SVID_SOURCE
55 _POSIX_C_SOURCE\ >=\ 200809L
60 Glibc 2.19 and earlier:
65 function displays a message on \fIstderr\fP
66 consisting of the string \fIs\fP, a colon, a space, a string
67 describing the signal number \fIsig\fP, and a trailing newline.
68 If the string \fIs\fP is NULL or empty, the colon and space are omitted.
69 If \fIsig\fP is invalid,
70 the message displayed will indicate an unknown signal.
76 except that it displays information about the signal described by
78 which should point to a valid
81 As well as the signal description,
83 displays information about the origin of the signal,
84 and other information relevant to the signal
85 (e.g., the relevant memory address for hardware-generated signals,
86 the child process ID for
88 and the user ID and process ID of the sender, for signals set using
93 The array \fIsys_siglist\fP holds the signal description strings
94 indexed by signal number.
100 functions return no value.
104 function was added to glibc in version 2.10.
106 For an explanation of the terms used in this section, see
112 Interface Attribute Value
116 T} Thread safety MT-Safe locale
120 POSIX.1-2008, 4.3BSD.
122 In glibc versions up to 2.12,
124 had the following bugs:
126 In some circumstances, a trailing newline is not printed.
127 .\" FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=12107
128 .\" Reportedly now fixed; check glibc 2.13
130 Additional details are not displayed for real-time signals.
131 .\" FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=12108
132 .\" Reportedly now fixed; check glibc 2.13