sysdecode_sigcode3
Lookup name of signal code
Usage
#include <sysdecode.h>
const char *
sysdecode_sigcode(int signal, int si_code);
Library
library “libsysdecode”
Overview
The sysdecode_sigcode() function returns a text description of the si_code field of the siginfo_t object associated with an instance of signal sig. The text description contains the name of the C macro whose value matches si_code. General purpose signal codes such as SI_USER are handled as well as signal-specific codes for SIGBUS, SIGCHLD, SIGFPE, SIGILL, SIGSEGV and SIGTRAP. If si_code does not represent a known signal code, sysdecode_sigcode() returns NULL.
Return values
The sysdecode_sigcode() function returns a pointer to a signal code description or NULL if si_code is not a known signal code.
Releases
24 releases since FreeBSD 11.1-RELEASE; the text changed 11 times.