.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
-.\" %%%LICENSE_START(verbatim)
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\" 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 2010-09-15 "GNU" "Linux Programmer's Manual"
+.TH STRSIGNAL 3 2017-09-15 "GNU" "Linux Programmer's Manual"
.SH NAME
strsignal \- return string describing signal
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strsignal(int " sig );
-.sp
+.PP
.BI "extern const char * const " sys_siglist [];
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR strsignal ():
.PD 0
.ad l
.RS 4
.TP 4
Since glibc 2.10:
-_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
+_POSIX_C_SOURCE\ >=\ 200809L
.TP
Before glibc 2.10:
_GNU_SOURCE
The
.BR strsignal ()
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
+number passed in the argument
+.IR sig .
+The string can be used only until the next call to
.BR strsignal ().
.PP
-The array \fIsys_siglist\fP holds the signal description strings
+The array
+.I sys_siglist
+holds the signal description strings
indexed by signal number.
The
.BR strsignal ()
.BR strsignal ()
function returns the appropriate description
string, or an unknown signal message if the signal number is invalid.
-On some systems (but not on Linux), a NULL pointer may be
-returned instead for an invalid signal number.
+On some systems (but not on Linux), NULL may instead be
+returned for an invalid signal number.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lbw31
+l l l.
+Interface Attribute Value
+T{
+.BR strsignal ()
+T} Thread safety MT-Unsafe race:strsignal locale
+.TE
+.sp 1
.SH CONFORMING TO
POSIX.1-2008.
Present on Solaris and the BSDs.