Home > Electronics Tutorials > C Language Tutorial > signal.h - Variables and Definitions

C Language Programming Library Reference Guide

signal.h - Variables and Definitions

The sig_atomic_t type is of type int and is used as a variable in a signal handler. The SIG_ macros are used with the signal function to define signal functions.

SIG_DFL Default handler.
SIG_ERR Represents a signal error.
SIG_IGN Signal ignore.
 

The SIG macros are used to represent a signal number in the following conditions:

SIGABRT Abnormal termination (generated by the abort function).
SIGFPE Floating-point error (error caused by division by zero, invalid operation, etc.).
SIGILL Illegal operation (instruction).
SIGINT Interactive attention signal (such as ctrl-C).
SIGSEGV Invalid access to storage (segment violation, memory violation).
SIGTERM Termination request.
Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......