Standard C++ Library Reference ISO/IEC (VERSION3)
/* TYPES */
typedef i-type sig_atomic_t;
/* FUNCTIONS */
int raise(int sig);
void (*signal(int sig, void (*func)(int)))(int);
raise
int raise(int sig);
The function sends the signal sig and returns zero if the signal is successfully reported.
sig_atomic_t
typedef i-type sig_atomic_t;
The type is the integer type i-type for objects whose stored value is altered by an assigning
operator as an atomic operation (an operation that never has its execution suspended while
partially completed). You declare such objects to communicate between signal handlers and the
rest of the program.
SIGABRT
#define SIGABRT <integer constant expression >= 0>
The macro yields the sig argument value for the abort signal.
SIGFPE
#define SIGFPE <integer constant expression >= 0>
The macro yields the sig argument value for the arithmetic error signal, such as for division by
zero or result out of range.
SIGILL
#define SIGILL <integer constant expression >= 0>
The macro yields the sig argument value for the invalid execution signal, such as for a
corrupted function image.