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               _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), NULL may instead be returned for an invalid
36       signal number.
37

ATTRIBUTES

39       For  an  explanation  of  the  terms  used   in   this   section,   see
40       attributes(7).
41
42       ┌────────────┬───────────────┬─────────────────────────────────┐
43Interface   Attribute     Value                           
44       ├────────────┼───────────────┼─────────────────────────────────┤
45strsignal() │ Thread safety │ MT-Unsafe race:strsignal locale │
46       └────────────┴───────────────┴─────────────────────────────────┘
47

CONFORMING TO

49       POSIX.1-2008.  Present on Solaris and the BSDs.
50

SEE ALSO

52       psignal(3), strerror(3)
53

COLOPHON

55       This  page  is  part of release 5.02 of the Linux man-pages project.  A
56       description of the project, information about reporting bugs,  and  the
57       latest     version     of     this    page,    can    be    found    at
58       https://www.kernel.org/doc/man-pages/.
59
60
61
62GNU                               2017-09-15                      STRSIGNAL(3)
Impressum