strsignal(3C)strsignal(3C)NAME
strsignal - get name of signal
SYNOPSIS
#include <string.h>
char *strsignal(int sig);
The strsignal() function maps the signal number in sig to a string describing the signal and returns a pointer to that string. It uses the
same set of the messages as psignal(3C). The returned string should not be overwritten.
The strsignal() function returns NULL if sig is not a valid signal number.
USAGE
Messages returned from this function are in the native language specified by the LC_MESSAGES locale category. See setlocale(3C).
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
gettext(3C), psignal(3C), setlocale(3C), str2sig(3C), attributes(5)
31 Mar 2005 strsignal(3C)
Check Out this Related Man Page
STRSIGNAL(3) Linux Programmer's Manual STRSIGNAL(3)NAME
strsignal - return string describing signal
SYNOPSIS
#include <string.h>
char *strsignal(int sig);
extern const char * const sys_siglist[];
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
strsignal():
Since glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Before glibc 2.10:
_GNU_SOURCE
DESCRIPTION
The strsignal() function returns a string describing the signal number passed in the argument sig. The string can be used only until the
next call to strsignal().
The array sys_siglist holds the signal description strings indexed by signal number. The strsignal() function should be used if possible
instead of this array.
RETURN VALUE
The 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), NULL may instead be returned for an invalid signal number.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7).
+------------+---------------+---------------------------------+
|Interface | Attribute | Value |
+------------+---------------+---------------------------------+
|strsignal() | Thread safety | MT-Unsafe race:strsignal locale |
+------------+---------------+---------------------------------+
CONFORMING TO
POSIX.1-2008. Present on Solaris and the BSDs.
SEE ALSO psignal(3), strerror(3)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-09-15 STRSIGNAL(3)
We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is
sailfish@st-kvar02 -> uname -a
SunOS st-kvar02 5.10... (7 Replies)
Hi,
I want to install the gcc-3.4.6 on solaris 9.5 , in order to compile perl 5.8.8 . I have the following packages .
gcc-3.4.6.tar
ibiconv-1.11-sol9-sparc-local.gz
gcc-3.4.6-sol9-sparc-local
libiconv-1.11.tar.gz
Where can I find the necessary documents or... (4 Replies)
Hi ,
I am installing gcc 3.4.6 on SunOS labcvs001sm 5.9 Generic_117171-07 sun4u sparc
SUNW,Ultra-5_10 . The isa info is 'sparcv'.
I have the following with me
a)gcc-3.4.6.tar
b)gcc-3.4.6-sol9-sparc-local
c)libiconv-1.11-sol9-sparc-local
d) binutils-2.18.tar.gz
e)... (8 Replies)
1. Even if i have the handles for ctrl+c it gives off a segfault
2. syslog doesn't log LOG_ERR event with log masked specified or non specified, it logs LOG_WARNING however...
#include <sys/types.h> /* include this before any other sys headers */
#include <sys/stat.h>
#include <fcntl.h>... (2 Replies)
Hi. This is code snipped I have. I am trying to play with signals...
int main(int argc, char *argv) {
int i;
sigset_t s; //declare set of signals
sigfillset(&s); //initializes the signal set to include all of the defined signals
int j;
for ( i = 0 ; i < 70 ; i++){
j... (6 Replies)
Someone, please help on this issue:-
Note : for security reason i didn't mention hostnames and ips.
==============================================================================
# ntpstat
unsynchronised
polling server every 1024 s
Ntpstat showing unsynchronised.
... (29 Replies)