From WikiChip
Difference between revisions of "c/signal.h"
< c

m (Jon moved page Signal.h - C to c/signal.h)
 
Line 8: Line 8:
 
! Type !! Description !! Since
 
! Type !! Description !! Since
 
|-
 
|-
| [[signal.h/sig_atomic_t - C|sig_atomic_t]] ||  Integer type of an object that can be accessed as an atomic entity || [[C89]]
+
| [[/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
 
|-
 
|-
| [[setjmp.h/SIG_DFL - C|SIG_DFL]] || rowspan="3" | macros expand into integral expressions that compare unequal to the address of any declarable function  || [[C89]]
+
| {{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]]
 
|-
 
|-
| [[setjmp.h/SIG_ERR - C|SIG_ERR]] || [[C89]]
+
| {{c|setjmp.h/SIG_ERR|SIG_ERR}} || [[C89]]
 
|-
 
|-
| [[setjmp.h/SIG_IGN - C|SIG_IGN]] || [[C89]]
+
| {{c|setjmp.h/SIG_IGN|SIG_IGN}} || [[C89]]
 
|-
 
|-
| [[setjmp.h/SIGABRT - C|SIGABRT]] || expand to positive integer constant expressions with type int; corresponding to an abnormal termination  || [[C89]]
+
| {{c|setjmp.h/SIGABRT|SIGABRT}} || expand to positive integer constant expressions with type int; corresponding to an abnormal termination  || [[C89]]
 
|-
 
|-
| [[setjmp.h/SIGFPE - C|SIGFPE]] || expand to positive integer constant expressions with type int; corresponding to an erroneous arithmetic operation  || [[C89]]
+
| {{c|setjmp.h/SIGFPE|SIGFPE}} || expand to positive integer constant expressions with type int; corresponding to an erroneous arithmetic operation  || [[C89]]
 
|-
 
|-
| [[setjmp.h/SIGILL - C|SIGILL]] || expand to positive integer constant expressions with type int; corresponding to a detection of an invalid function image || [[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]]
 
|-
 
|-
| [[setjmp.h/SIGINT - C|SIGINT]] || expand to positive integer constant expressions with type int; corresponding to a receipt of an interactive attention signal  || [[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]]
 
|-
 
|-
| [[setjmp.h/SIGSEGV - C|SIGSEGV]] || expand to positive integer constant expressions with type int; corresponding to an invalid access to storage  || [[C89]]
+
| {{c|setjmp.h/SIGSEGV|SIGSEGV}} || expand to positive integer constant expressions with type int; corresponding to an invalid access to storage  || [[C89]]
 
|-
 
|-
| [[setjmp.h/SIGTERM - C|SIGTERM]] || expand to positive integer constant expressions with type int; corresponding to a termination request sent to the program || [[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
 
|-
 
|-
| [[setjmp.h/signal - C|signal]] || sets up a signal handler for specific signal || [[C89]]
+
| [[/signal|signal]] || sets up a signal handler for specific signal || [[C89]]
 
|-
 
|-
| [[setjmp.h/raise - C|raise]] || carries out the action defined by 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