1PSIGNAL(3)                 Linux Programmer's Manual                PSIGNAL(3)
2
3
4

NAME

6       psignal, psiginfo - print signal message
7

SYNOPSIS

9       #include <signal.h>
10
11       void psignal(int sig, const char *s);
12       void psiginfo(const siginfo_t *pinfo, const char *s);
13
14       extern const char *const sys_siglist[];
15
16   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
17
18       psignal(): _SVID_SOURCE || _BSD_SOURCE
19       psiginfo(): _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
20       sys_siglist: _BSD_SOURCE
21

DESCRIPTION

23       The  psignal()  function displays a message on stderr consisting of the
24       string s, a colon, a space, a string describing the signal number  sig,
25       and  a  trailing  newline.  If the string s is NULL or empty, the colon
26       and space are omitted.  If sig is invalid, the message  displayed  will
27       indicate an unknown signal.
28
29       The  psiginfo()  function  is  like  psignal(), except that it displays
30       information about the signal described by pinfo, which should point  to
31       a  valid siginfo_t structure.  As well as the signal description, psig‐
32       info() displays information about the origin of the signal,  and  other
33       information  relevant  to the signal (e.g., the relevant memory address
34       for hardware-generated signals, the child process ID for  SIGCHLD,  and
35       the user ID and process ID of the sender, for signals set using kill(2)
36       or sigqueue(3)).
37
38       The array sys_siglist holds the signal description strings  indexed  by
39       signal number.
40

RETURN VALUE

42       The psignal() and psiginfo() functions return no value.
43

VERSIONS

45       The psiginfo() function was added to glibc in version 2.10.
46

CONFORMING TO

48       POSIX.1-2008, 4.3BSD.
49

BUGS

51       In glibc versions up to 2.12, psiginfo() had the following bugs:
52
53       *  In some circumstances, a trailing newline is not printed.
54
55       *  Additional details are not displayed for real-time signals.
56

SEE ALSO

58       sigaction(2), perror(3), strsignal(3), signal(7)
59

COLOPHON

61       This  page  is  part of release 3.53 of the Linux man-pages project.  A
62       description of the project, and information about reporting  bugs,  can
63       be found at http://www.kernel.org/doc/man-pages/.
64
65
66
67GNU                               2010-10-06                        PSIGNAL(3)
Impressum