Tcl_SignalId(3)

Tcl_SignalId3

Convert signal codes

Usage

#include <tcl.h>

const char *
Tcl_SignalId(sig)

const char *
Tcl_SignalMsg(sig)

    


    

Arguments

int sig (in)

A POSIX signal number such as SIGPIPE.


    


            

Overview

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.

Keywords

signals, signal numbers

From tcl 8.6.16-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.