<csignal>

Includes the C Standard library header <signal.h> and adds the associated names to the std namespace. Including this header ensures that the names declared using external linkage in the Standard C library header are declared in the std namespace.

Syntax

#include <csignal>

Namespace and Macros

namespace std {
    using sig_atomic_t = see below;

    extern using signal-handler = void(int);
}

#define SIG_DFL
#define SIG_ERR
#define SIG_IGN
#define SIGABRT
#define SIGFPE
#define SIGILL
#define SIGINT
#define SIGSEGV
#define SIGTERM

Functions

signal-handler* signal(int sig, signal-handler* func);
int raise(int sig);

See also

Header Files Reference
C++ Standard Library Overview
Thread Safety in the C++ Standard Library