1psignal(3UCB)      SunOS/BSD Compatibility Library Functions     psignal(3UCB)
2
3
4

NAME

6       psignal, sys_siglist - system signal messages
7

SYNOPSIS

9       /usr/ucb/cc [ flag ... ] file ...
10
11       void psignal(sig, s)
12       unsigned sig;
13       char *s;
14       char *sys_siglist[];
15
16

DESCRIPTION

18       psignal()  produces a short message on the standard error file describ‐
19       ing the indicated signal. First the argument string s is printed,  then
20       a  colon, then the name of the signal and a NEWLINE. Most usefully, the
21       argument string is the name of the program which incurred  the  signal.
22       The signal number should be from among those found in <signal.h>.
23
24
25       To  simplify  variant formatting of signal names, the vector of message
26       strings sys_siglist is provided; the signal number can be  used  as  an
27       index  in  this  table  to get the signal name without the newline. The
28       define NSIG defined in <signal.h> is the number  of  messages  provided
29       for in the table; it should be checked because new signals may be added
30       to the system before they are added to the table.
31

SEE ALSO

33       perror(3C), signal(3C)
34

NOTES

36       Use of these interfaces should be restricted to only applications writ‐
37       ten  on  BSD platforms.  Use of these interfaces with any of the system
38       libraries or in multi-thread applications is unsupported.
39
40
41
42SunOS 5.11                        30 Oct 2007                    psignal(3UCB)
Impressum