1PSIGNAL(3) Library Functions Manual PSIGNAL(3)
2
3
4
6 psignal, sys_siglist - system signal messages
7
9 psignal(sig, s)
10 unsigned sig;
11 char *s;
12
13 char *sys_siglist[];
14
16 Psignal produces a short message on the standard error file describing
17 the indicated signal. First the argument string s is printed, then a
18 colon, then the name of the signal and a new-line. Most usefully, the
19 argument string is the name of the program which incurred the signal.
20 The signal number should be from among those found in <signal.h>.
21
22 To simplify variant formatting of signal names, the vector of message
23 strings sys_siglist is provided; the signal number can be used as an
24 index in this table to get the signal name without the newline. The
25 define NSIG defined in <signal.h> is the number of messages provided
26 for in the table; it should be checked because new signals may be added
27 to the system before they are added to the table.
28
30 sigvec(2), perror(3)
31
32
33
344.2 Berkeley Distribution May 15, 1985 PSIGNAL(3)