BSD 4_2 development
[unix-history] / usr / man / man3 / psignal.3
CommitLineData
98c49243
C
1.TH PSIGNAL 3 "25 February 1983"
2.UC 4
3.SH NAME
4psignal, sys_siglist \- system signal messages
5.SH SYNOPSIS
6.nf
7.B psignal(sig, s)
8.B unsigned sig;
9.B char *s;
10.PP
11.B char *sys_siglist[];
12.fi
13.SH DESCRIPTION
14.I Psignal
15produces a short message
16on the standard error file
17describing the indicated signal.
18First the argument string
19.I s
20is printed, then a colon, then the name of the signal
21and a new-line.
22Most usefully, the argument string is the name
23of the program which incurred the signal.
24The signal number should be from among those found
25in
26.IR <signal.h> .
27.PP
28To simplify variant formatting
29of signal names, the vector of message strings
30.I sys_siglist
31is provided;
32the signal number
33can be used as an index in this table to get the
34signal name without the newline.
35The define NSIG defined in
36.RI < signal.h >
37is the number of messages provided for in the table;
38it should be checked because new
39signals may be added to the system before
40they are added to the table.
41.SH "SEE ALSO"
42sigvec(2),
43perror(3)