main
test-branch
| Line | |
|---|
| 1 | /* The header signal.h declares a type and two functions and defines several macros,
|
|---|
| 2 | * for handling various signals (conditions that may be reported during program execution).
|
|---|
| 3 | */
|
|---|
| 4 | #ifndef _SIGNAL_
|
|---|
| 5 | #define _SIGNAL_
|
|---|
| 6 |
|
|---|
| 7 | /* Types */
|
|---|
| 8 | typedef int sig_atomic_t;
|
|---|
| 9 |
|
|---|
| 10 | /* Macros */
|
|---|
| 11 | #define SIG_DFL (void (*)())0
|
|---|
| 12 | #define SIG_ERR (void (*)())-1
|
|---|
| 13 | #define SIG_IGN (void (*)())1
|
|---|
| 14 |
|
|---|
| 15 | #define SIGABRT 2
|
|---|
| 16 | #define SIGFPE 3
|
|---|
| 17 | #define SIGILL 4
|
|---|
| 18 | #define SIGINT 5
|
|---|
| 19 | #define SIGSEGV 6
|
|---|
| 20 | #define SIGTERM 7
|
|---|
| 21 |
|
|---|
| 22 | /* Functions */
|
|---|
| 23 | int raise(int sig);
|
|---|
| 24 | void (*signal(int sig, void (*func)(int)))(int);
|
|---|
| 25 |
|
|---|
| 26 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.