svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
strsignal(3c)
strsignal(3C) Standard C Library Functions strsignal(3C)
NAME
strsignal - get string describing signal
SYNOPSIS
#include <string.h>
char *strsignal(int sig);
DESCRIPTION
The strsignal() function maps the signal number in sig to a string de‐
scribing 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 or freed by the caller.
The returned pointer might be invalidated or the string content might
be overwritten by a subsequent call to either strsignal() or setlo‐
cale(). The returned pointer might also be invalidated if the calling
thread is terminated.
RETURN VALUES
The strsignal() function returns NULL if sig is not a valid signal num‐
ber.
USAGE
Messages returned from this function are in the native language speci‐
fied by the LC_MESSAGES locale category. See setlocale(3C).
The strsignal() function returns a description of the signal, while the
sig2str(3C) function returns the signal name (without the "SIG" pre‐
fix). For instance, strsignal(SIGHUP) in the "C" locale returns the
string "Hangup", while sig2str(SIGHUP, buf) returns the string "HUP".
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe _ Standard‐
POSIX.1-2008, SUSv4, XPG7
SEE ALSO
gettext(3C), psignal(3C), setlocale(3C), sig2str(3C), attributes(7)
HISTORY
The strsignal() function has been included in Solaris since the Solaris
2.0 release.
Oracle Solaris 11.4 28 Feb 2022 strsignal(3C)