Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Files signal(4)
NAME
signal - Contains definitions and variables used by signal functions
SYNOPSIS
#include <signal.h>
DESCRIPTION
The signal.h header file contains:
Declarations of symbolic constants used to refer to the signals that occur in the OSS
environment.
Declarations for the sigset_t type and the sigaction structure. Note that G-series TNS or
accelerated processes and all native processes use different declarations for sigset_t; all
processes using the same sigset_t declaration must be of the same process type.
Declarations of the stack_t structure used to define and manipulate the alternate signal
stack. This capability is available only on H-series and J-series RVUs.
Declarations of additional symbolic constants used in signal handling:
MINSIGSTKSZ
Indicates the minimum allowable size of the alternate signal stack.
SA_NOCLDSTOP
Indicates that the SIGCHLD signal should not be generated when a
child process stops.
SA_ONSTACK
Note that this flag is not supported on NSK systems. If an alternate sig-
nal stack is registered and enabled, and if the thread that defined the sig-
nal handler is not blocked when the signal is delivered, the signal
handler only runs on the alternate signal stack. If the thread is blocked,
the signal handler runs on the user stack. However, SA_ONSTACK is
provided to allow ported POSIX applications to run without change.
SA_ONSTACK can be used only if the SA_COMPATABILITY value
is set. However, you should NOT use the SA_ONSTACK flag and the
SA_COMPATABILITY feature test macro in a threaded application
that uses the Standard POSIX Threads library. Use of these two options
with the Standard POSIX Threads library can result in undefined
behavior in the SPT environment.
SIG_ABORT Requests that the process terminate abnormally when a specific signal is
received.
SIG_DEBUG Requests that the process enter the debugger when a specific signal is
received.
SIG_DFL Requests default signal handling.
SIG_ERR Indicates an error condition by reserving a return code for a certain class
of functions. Such functions return a pointer to a function that takes an
integer as a parameter and returns void.
527186-023 Hewlett-Packard Company 1131