BSD 4_3_Tahoe release
[unix-history] / usr / src / man / man3 / psignal.3
CommitLineData
d94af13c
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
95f51977 5.\" @(#)psignal.3 6.1 (Berkeley) 5/15/85
d94af13c 6.\"
95f51977 7.TH PSIGNAL 3 "May 15, 1985"
d94af13c
KM
8.UC 5
9.SH NAME
10psignal, sys_siglist \- system signal messages
11.SH SYNOPSIS
12.nf
13.B psignal(sig, s)
14.B unsigned sig;
15.B char *s;
16.PP
17.B char *sys_siglist[];
18.fi
19.SH DESCRIPTION
20.I Psignal
21produces a short message
22on the standard error file
23describing the indicated signal.
24First the argument string
25.I s
26is printed, then a colon, then the name of the signal
27and a new-line.
28Most usefully, the argument string is the name
29of the program which incurred the signal.
30The signal number should be from among those found
31in
32.IR <signal.h> .
33.PP
34To simplify variant formatting
35of signal names, the vector of message strings
36.I sys_siglist
37is provided;
38the signal number
39can be used as an index in this table to get the
40signal name without the newline.
41The define NSIG defined in
42.RI < signal.h >
43is the number of messages provided for in the table;
44it should be checked because new
45signals may be added to the system before
46they are added to the table.
47.SH "SEE ALSO"
48sigvec(2),
49perror(3)