HP C/iX Library Reference Manual (30026-90004)

Chapter 4 43
HP C/iX Library Header Descriptions
Header File Contents
NOTE
This header file is not defined by the ANSI C standard. Programs using this
header are likely to be less portable.
Non-local Jumps <setjmp.h>
The header <setjmp.h> declares a type and several functions for bypassing the normal
function call and return discipline. The following identifiers are declared in this header
file:
Signal Handling <signal.h>
The header <signal.h> declares a type, functions, and macros for handling various
signals that can be raised during program execution.
The following identifiers are defined in <signal.h>:
Table 4-9. Nonlocal Jumps <setjmp.h>
Name Type Description
jmp_buf type
definition
An array type used by setjmp to save and by longjmp to restore a
program's environment.
longjmp() function Restores an environment previously saved by setjmp().
setjmp() function Saves the current environment.
Table 4-10. Signal Handling <signal.h>
Name Type Description
raise function Causes a signal to be raised.
sig_atomic_t type
definition
An integral type, such that an object of this type can be accessed
in an atomic fashion (in one operation), even in the presence of
external interrupts.
SIG_DFL macro Passed as the second parameter to signal(). Specifies default
signal handling.
SIG_ERR macro Returned by signal() to indicate an error when calling the
signal function.
SIG_IGN macro Passed as the second parameter to signal(). Specifies that
exceptions should be ignored.
SIGABRT macro The signal raised by the abort function indicating abnormal
termination.
SIGFPE macro A signal indicating that a floating-point exception or erroneous
arithmetic operation has occurred (for example, divide by 0).
SIGILL macro A signal indicating that an illegal instruction was executed
(possibly after a jump).