Artifact 78dfbe277d80380fde4be247ff4758f739253c794ca0fc4afeaea294504261ce:
- File doc/markdown/Signal.md — part of check-in [41e2dd9712] at 2026-09-19 22:12:20 on branch tip-700 — 24 more final conversions (user: Torsten, size: 956) [annotate] [blame] [check-ins using]
CommandName: Tcl_SignalId ManualSection: 3 Version: 8.3 TclPart: Tcl TclDescription: Tcl Library Procedures Keywords:
- signals
- signal numbers Copyright:
- Copyright (c) 2001 ActiveState Tool Corp. ---
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.