Wednesday, August 31, 2016

C Library Header – signal

The <signal.h> header provides a means to handle signals reported during a program's execution.

The <signal.h> header shall define the following macro constant:
SIG_DFL default signal handling
SIG_IGN The signal is ignored
SIG_ERRerror was encountered
SIGABRT Signal Abort
SIGFPE Signal Floating-Point Exception
SIGILL Signal Illegal Instruction
SIGINT Signal Interrupt
SIGSEGV Signal Segmentation Violation
SIGTERM Signal Terminate

The <signal.h> header shall define the following function:
signalsets a signal handler for particular signal
raiseruns the signal handler for particular signal

The <signal.h> header shall define the following type:
sig_atomic_tthe integer type that can be accessed as an atomic entity from an asynchronous signal handler /td>



Related topics:
<setjmp.h>   |   <stdalign.h>   |   <stdarg.h>   |   <stdatomic.h>   |   <stdbool.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment