Standard C++ Library Reference ISO/IEC (VERSION3)
SIGINT
#define SIGINT <integer constant expression >= 0>
The macro yields the sig argument value for the asynchronous interactive attention signal.
signal
void (*signal(int sig, void (*func)(int)))(int);
The function specifies the new handling for signal sig and returns the previous handling, if
successful; otherwise, it returns SIG_ERR.
If func is SIG_DFL, the target environment commences default handling (as defined by
the implementation).
●
If func is SIG_IGN, the target environment ignores subsequent reporting of the signal.●
Otherwise, func must be the address of a function returning void that the target
environment calls with a single int argument. The target environment calls this function
to handle the signal when it is next reported, with the value of the signal as its argument.
●
When the target environment calls a signal handler:
The target environment can block further occurrences of the corresponding signal until
the handler returns, calls longjmp, or calls signal for that signal.
●
The target environment can perform default handling of further occurrences of the
corresponding signal.
●
For signal SIGILL, the target environment can leave handling unchanged for that signal.●
SIGSEGV
#define SIGSEGV <integer constant expression >= 0>
The macro yields the sig argument value for the invalid storage access signal, such as for an
erroneous lvalue expression.
SIGTERM
#define SIGTERM <integer constant expression >= 0>
The macro yields the sig argument value for the asynchronous termination request signal.