Skip to content
Tcl Source Code Artifact [6c95536a1a]
Login

Artifact [6c95536a1a]

Artifact 6c95536a1a9c277967fb56dc1118159e9e5036980b5436a480c2b64b9710fd78:



CommandName: Tcl_SignalId ManualSection: 3 Version: 8.3 TclPart: Tcl TclDescription: Tcl Library Procedures Keywords:

Name

Tcl_SignalId, Tcl_SignalMsg - Convert signal codes

Synopsis

::: {.synopsis} ::: #include <tcl.h> [const char *]{.ret} [Tcl_SignalId]{.ccmd}[sig]{.cargs} [const char *]{.ret} [Tcl_SignalMsg]{.ccmd}[sig]{.cargs} :::

Arguments

::: {.arguments} ::: [sig]{.carg .in type="int"} 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 modify them.