strsignal(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

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)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3