8498 ficl: variable 'count' might be clobbered by 'longjmp' or 'vfork'
[unleashed.git] / share / man / man3c / strsignal.3c
blobc4102d1b91c45892b197367e693ab2d543e4fb04
1 '\" te
2 .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH STRSIGNAL 3C "Mar 31, 2005"
7 .SH NAME
8 strsignal \- get name of signal
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <string.h>
14 \fBchar *\fR\fBstrsignal\fR(\fBint\fR \fIsig\fR);
15 .fi
17 .SH DESCRIPTION
18 .sp
19 .LP
20 The \fBstrsignal()\fR function maps the signal number in \fIsig\fR to a string
21 describing the signal and returns a pointer to that string. It uses the same
22 set of the messages as \fBpsignal\fR(3C). The returned string should not be
23 overwritten.
24 .SH RETURN VALUES
25 .sp
26 .LP
27 The \fBstrsignal()\fR function returns \fINULL\fR if \fIsig\fR is not a valid
28 signal number.
29 .SH USAGE
30 .sp
31 .LP
32 Messages returned from this function are in the native language specified by
33 the \fBLC_MESSAGES\fR locale category. See \fBsetlocale\fR(3C).
34 .SH ATTRIBUTES
35 .sp
36 .LP
37 See \fBattributes\fR(5) for descriptions of the following attributes:
38 .sp
40 .sp
41 .TS
42 box;
43 c | c
44 l | l .
45 ATTRIBUTE TYPE  ATTRIBUTE VALUE
47 MT-Level        Safe
48 .TE
50 .SH SEE ALSO
51 .sp
52 .LP
53 \fBgettext\fR(3C), \fBpsignal\fR(3C), \fBsetlocale\fR(3C), \fBstr2sig\fR(3C),
54 \fBattributes\fR(5)