blob: 0d102051b1784839bd246b2cac42f172875f2398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\" Linux libc source code
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 17:59:03 1993 by Rik Faith (faith@cs.unc.edu)
.TH STRSIGNAL 3 "April 13, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
strsignal \- return string describing signal
.SH SYNOPSIS
.nf
.B #include <string.h>
.sp
.BI "char *strsignal(int " sig );
.sp
.BI "extern const char * const " sys_siglist []
.fi
.SH DESCRIPTION
The \fBstrsignal()\fP function returns a string describing the signal
number passed in the argument \fIsig\fP. The string can only be used
until the next call to \fBstrsignal()\fP.
.PP
The array \fIsys_siglist\fP holds the signal description strings
indexed by signal number.
.SH "RETURN VALUE"
The \fBstrsignal()\fP function returns the appropriate description
string, or an unknown signal message if the signal number is invalid.
.SH SEE ALSO
.BR psignal "(3), " strerror (3)
|