From WikiChip
Difference between revisions of "c/signal.h"
(Created page with "{{DISPLAYTITLE:<signal.h> Header - C}} {{C Standard Library}} The '''<signal.h>''' header is part of the standard library of the C programming language which provides ...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
! Type !! Description !! Since | ! Type !! Description !! Since | ||
|- | |- | ||
− | | [[ | + | | [[/sig_atomic_t|sig_atomic_t]] || Integer type of an object that can be accessed as an atomic entity || [[C89]] |
|} | |} | ||
Line 17: | Line 17: | ||
! Macro Name !! Description !! Since | ! Macro Name !! Description !! Since | ||
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIG_DFL|SIG_DFL}} || rowspan="3" | macros expand into integral expressions that compare unequal to the address of any declarable function || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIG_ERR|SIG_ERR}} || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIG_IGN|SIG_IGN}} || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGABRT|SIGABRT}} || expand to positive integer constant expressions with type int; corresponding to an abnormal termination || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGFPE|SIGFPE}} || expand to positive integer constant expressions with type int; corresponding to an erroneous arithmetic operation || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGILL|SIGILL}} || expand to positive integer constant expressions with type int; corresponding to a detection of an invalid function image || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGINT|SIGINT}} || expand to positive integer constant expressions with type int; corresponding to a receipt of an interactive attention signal || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGSEGV|SIGSEGV}} || expand to positive integer constant expressions with type int; corresponding to an invalid access to storage || [[C89]] |
|- | |- | ||
− | | | + | | {{c|setjmp.h/SIGTERM|SIGTERM}} || expand to positive integer constant expressions with type int; corresponding to a termination request sent to the program || [[C89]] |
|- | |- | ||
|} | |} | ||
Line 42: | Line 42: | ||
! Function !! Description !! Since | ! Function !! Description !! Since | ||
|- | |- | ||
− | | [[ | + | | [[/signal|signal]] || sets up a signal handler for specific signal || [[C89]] |
|- | |- | ||
− | | [[ | + | | [[/raise|raise]] || carries out the action defined by signal() || [[C89]] |
|- | |- | ||
|} | |} |
Latest revision as of 14:37, 23 November 2015
The <signal.h> header is part of the standard library of the C programming language which provides the functionality necessary for dealing with various signals.
Types[edit]
Type | Description | Since |
---|---|---|
sig_atomic_t | Integer type of an object that can be accessed as an atomic entity | C89 |
Macros[edit]
The header provides the following macro definitions:
Macro Name | Description | Since |
---|---|---|
SIG_DFL | macros expand into integral expressions that compare unequal to the address of any declarable function | C89 |
SIG_ERR | C89 | |
SIG_IGN | C89 | |
SIGABRT | expand to positive integer constant expressions with type int; corresponding to an abnormal termination | C89 |
SIGFPE | expand to positive integer constant expressions with type int; corresponding to an erroneous arithmetic operation | C89 |
SIGILL | expand to positive integer constant expressions with type int; corresponding to a detection of an invalid function image | C89 |
SIGINT | expand to positive integer constant expressions with type int; corresponding to a receipt of an interactive attention signal | C89 |
SIGSEGV | expand to positive integer constant expressions with type int; corresponding to an invalid access to storage | C89 |
SIGTERM | expand to positive integer constant expressions with type int; corresponding to a termination request sent to the program | C89 |
Functions[edit]
Function | Description | Since |
---|---|---|
signal | sets up a signal handler for specific signal | C89 |
raise | carries out the action defined by signal() | C89 |