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

NAME

6       strsignal - return string describing signal
7

SYNOPSIS

9       #define _GNU_SOURCE
10       #include <string.h>
11
12       char *strsignal(int sig);
13
14       extern const char * const sys_siglist[];
15

DESCRIPTION

17       The  strsignal() function returns a string describing the signal number
18       passed in the argument sig.  The string can only be used until the next
19       call to strsignal().
20
21       The  array  sys_siglist holds the signal description strings indexed by
22       signal number.  The strsignal() function should  be  used  if  possible
23       instead of this array.
24

RETURN VALUE

26       The strsignal() function returns the appropriate description string, or
27       an unknown signal message if the signal number  is  invalid.   On  some
28       systems  (but not on Linux), a NULL pointer may be returned instead for
29       an invalid signal number.
30

CONFORMING TO

32       This function is not part of any standard, but aside from Linux, it can
33       be found on Solaris and the BSDs.
34

SEE ALSO

36       psignal(3), strerror(3), feature_test_macros(7)
37
38
39
40GNU                               1999-02-08                      STRSIGNAL(3)
Impressum