signal.h — Exception handling

The signal.h header file defines the following values.
  • Functions:
  • Macros:
  • Signals:
  • 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.

The following values are available in z/OS® UNIX only:
  • Signals:
  • The structures sigaction, __sigactionset_t, __sigactionset_s, sigset_t, and pid_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:
  • Functions:
    Note: bsd_signal() has been marked obsolescent in Single UNIX Specification, Version 3 and may be withdrawn in a future version. The sigaction() function is preferred for portability.
_OPEN_THREADS 2:
  • Functions:
    pthread_sigmask()

_UNIX03_THREADS:

  • pthread_kill()