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

NAME

6       strsignal - return string describing signal
7

SYNOPSIS

9       #include <string.h>
10
11       char *strsignal(int sig);
12
13       extern const char * const sys_siglist[];
14
15   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
16
17       strsignal():
18           Since glibc 2.10:
19               _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
20           Before glibc 2.10:
21               _GNU_SOURCE
22

DESCRIPTION

24       The  strsignal() function returns a string describing the signal number
25       passed in the argument sig.  The string can be used only until the next
26       call to strsignal().
27
28       The  array  sys_siglist holds the signal description strings indexed by
29       signal number.  The strsignal() function should  be  used  if  possible
30       instead of this array.
31

RETURN VALUE

33       The strsignal() function returns the appropriate description string, or
34       an unknown signal message if the signal number  is  invalid.   On  some
35       systems  (but not on Linux), a NULL pointer may be returned instead for
36       an invalid signal number.
37

CONFORMING TO

39       POSIX.1-2008.  Present on Solaris and the BSDs.
40

SEE ALSO

42       psignal(3), strerror(3)
43

COLOPHON

45       This page is part of release 3.53 of the Linux  man-pages  project.   A
46       description  of  the project, and information about reporting bugs, can
47       be found at http://www.kernel.org/doc/man-pages/.
48
49
50
51GNU                               2010-09-15                      STRSIGNAL(3)
Impressum