The header file <signal.h> contains a number of function prototypes that are associated with signal handling.
The following functions can be used with signal handling in your program:
The _GetExcData() function is an ILE C/C++ extension that allows you to obtain information about the exception message associated with the signal and returns a structure containing information about the exception message. The _GetExcData() function returns the same structure that is passed to the #pragma exception_handler directive.
The signal() function specifies the action that is performed when a signal is raised. There are ten signals that are represented as macros in the <signal.h> header file. In addition, the macro SIGALL has the semantics of a signal but with some unique characteristics. The ten signals are as follows:
SIG_IGN and SIG_DFL are signal actions that are also included in the <signal.h> header file.
SIGALL is an ILE C/C++ extension that allows you to register your own default-handling function for all signals whose action is SIG_DFL. This default-handling function can be registered by using the signal() function with SIGALL, as shown in the example section. A function check is not a signal and cannot be monitored for by the signal function. SIGALL cannot be signaled by the raise() function.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.