Standard library header <csignal>

From cppreference.com
< cpp‎ | header

This header was originally in the C standard library as <signal.h>.

This header is part of the program support library.

Contents

Typedefs

the integer type that can be accessed as an atomic entity from an asynchronous signal handler
(typedef)

Macros

defines signal types
(macro constant)
defines signal handling strategies
(macro constant)
return value of signal specifying that an error was encountered
(macro constant)

Functions

sets a signal handler for particular signal
(function)
runs the signal handler for particular signal
(function)

[edit] Synopsis

namespace std {
  using sig_atomic_t = /* implementation-defined */;
  void (*signal(int sig, void (*func)(int)))(int);
  int raise(int sig);
}
 
#define SIG_DFL /* implementation-defined */
#define SIG_ERR /* implementation-defined */
#define SIG_IGN /* implementation-defined */
#define SIGABRT /* implementation-defined */
#define SIGFPE /* implementation-defined */
#define SIGILL /* implementation-defined */
#define SIGINT /* implementation-defined */
#define SIGSEGV /* implementation-defined */
#define SIGTERM /* implementation-defined */