Defines signal-handling constants and types. See the following tables.
Table 1. Constants Defined in signal.h | Constant |
Definition |
| SIG_DFL |
If passed as the second argument to signal, the default response is installed. |
| SIG_ERR |
Return value of signal(), if the handler cannot be installed. |
| SIG_IGN |
If passed as the second argument to signal(), the signal is ignored. |
Table 2. Signal-Type Macros | Constant |
Definition |
| SIGABRT |
Abort program abnormally |
| SIGFPE |
Floating point error |
| SIGILL |
Illegal instruction |
| SIGINT |
Interrupt |
| SIGSEGV |
Segmentation violation |
| SIGTERM |
Terminate program normally |