DOKK / manpages / debian 11 / tcl8.6-doc / Tcl_SignalMsg.3tcl.en
Tcl_SignalId(3tcl) Tcl Library Procedures Tcl_SignalId(3tcl)


Tcl_SignalId, Tcl_SignalMsg - Convert signal codes

#include <tcl.h>

const char *
Tcl_SignalId(sig)

const char *
Tcl_SignalMsg(sig)

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

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.

signals, signal numbers

8.3 Tcl