Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tcl_SignalId (3tcl)

Name

Tcl_SignalId - Convert signal codes

Synopsis

#include <tcl.h>

const char *
Tcl_SignalId(sig)

const char *
Tcl_SignalMsg(sig)

Description

Tcl_SignalId(3tcl)          Tcl Library Procedures          Tcl_SignalId(3tcl)



______________________________________________________________________________

NAME
       Tcl_SignalId, Tcl_SignalMsg - Convert signal codes

SYNOPSIS
       #include <tcl.h>

       const char *
       Tcl_SignalId(sig)

       const char *
       Tcl_SignalMsg(sig)


ARGUMENTS
       int sig (in)          A POSIX signal number such as SIGPIPE.
______________________________________________________________________________


DESCRIPTION
       Tcl_SignalId  and  Tcl_SignalMsg  return a string representation of the
       provided signal number (sig).  Tcl_SignalId returns a  machine-readable
       textual  identifier  such as "SIGPIPE".  Tcl_SignalMsg returns a human-
       readable string such as "bus error".  The  strings  returned  by  these
       functions are statically allocated and the caller must not free or mod-
       ify them.


KEYWORDS
       signals, signal numbers



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tcl-8    |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+

NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source was downloaded from  http://prdownloads.sourceforge.net/tcl/tcl-
       core8.6.7-src.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tcl                                   8.3                   Tcl_SignalId(3tcl)