Spec-Zone.ru › C

Standard library header <signal.h>

This header is part of the program support library.

Types

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

Macros

SIGABRTSIGFPESIGILLSIGINTSIGSEGVSIGTERM
defines signal types
(macro constant)
SIG_DFLSIG_IGN
defines signal handling strategies
(macro constant)
SIG_ERR
error was encountered
(macro constant)

Functions

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

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 */

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/c/header/signal

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API