Namespaces
Variants
Views
Actions

Standard library header <signal.h>

From cppreference.com
< c‎ | header

This header is part of the program support library.

Contents

Types

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

Macros

defines signal types
(macro constant) [edit]
defines signal handling strategies
(macro constant) [edit]
error was encountered
(macro constant) [edit]

Functions

sets a signal handler for particular signal
(function) [edit]
runs the signal handler for particular signal
(function) [edit]

[edit] Synopsis

typedef sig_atomic_t /* see description */;
 
void (*signal(int sig, void (*func)(int)))(int);
int raise(int sig);
 
#define SIG_DFL  /* see description */
#define SIG_ERR  /* see description */
#define SIG_IGN  /* see description */
#define SIGABRT  /* see description */
#define SIGFPE   /* see description */
#define SIGILL   /* see description */
#define SIGINT   /* see description */
#define SIGSEGV  /* see description */
#define SIGTERM  /* see description */