signal.h — Exception handling
The
signal.h
header file defines the following values. - Functions:
raise() signal() - Macros:
SIG_DFL SIG_ERR SIG_IGN SIG_PROMOTE - Signals:
SIGABND SIGABRT SIGFPE SIGILL SIGINT SIGIOERR SIGSEGV SIGTERM SIGUSR1 SIGUSR2 - The type
sig_atomic_t
, which is the largest integer type the processor can load or store automatically in the presence of asynchronous interrupts.
The following functions are supported only in a POSIX program. You must specify the POSIX(ON) runtime option for these functions.
kill() | sigaction() | __sigactionset() | sigaddset() | sigdelset() |
sigemptyset() | sigfillset() | sigismember() | siglongjmp() | sigpending() |
sigprocmask() | sigsuspend() | sigtimedwait() | sigwait() | sigwaitinfo() |
The following values are available in z/OS® UNIX only:
- Signals:
SIGALRM SIGCHLD SIGCLD SIGCONT SIGHUP SIGIO SIGKILL SIGPIPE SIGQUIT SIGSTOP SIGTHCONT SIGTHSTOP SIGTRACE SIGTRAP SIGTSTP SIGTTIN SIGTTOU - The structures
sigaction
,__sigactionset_t
,__sigactionset_s
,sigset_t
, andpid_t
. - options arguments for sigprocmask(): SIG_BLOCK, SIG_UNBLOCK, and SIG_SETMASK.
- Flags for the
sa_flags
field, available in z/OS UNIX only: SA_NOCLDSTOP and _SA_OLD_STYLE.
_XOPEN_SOURCE_EXTENDED 1:
- Signals:
SIGBUS SIGPOLL SIGPROF SIGSYS SIGURG SIGXCPU SIGXFSZ SIGVTALRM SIGWINCH - Functions:
bsd_signal() killpg() sigaltstack() sighold() sigignore() siginterrupt() sigpause() sigrelse() sigset() sigstack() Note:bsd_signal()
has been marked obsolescent in Single UNIX Specification, Version 3 and may be withdrawn in a future version. Thesigaction()
function is preferred for portability.
_OPEN_THREADS 2:
- Functions: pthread_sigmask()
_UNIX03_THREADS:
- pthread_kill()