4 #define SIGHUP 1 /* hangup */
5 #define SIGINT 2 /* interrupt */
6 #define SIGQUIT 3 /* quit */
7 #define SIGILL 4 /* illegal instruction (not reset when caught) */
8 #define SIGTRAP 5 /* trace trap (not reset when caught) */
9 #define SIGIOT 6 /* IOT instruction */
10 #define SIGABRT 6 /* used by abort, replace SIGIOT in the future */
11 #define SIGEMT 7 /* EMT instruction */
12 #define SIGFPE 8 /* floating point exception */
13 #define SIGKILL 9 /* kill (cannot be caught or ignored) */
14 #define SIGBUS 10 /* bus error */
15 #define SIGSEGV 11 /* segmentation violation */
16 #define SIGSYS 12 /* bad argument to system call */
17 #define SIGPIPE 13 /* write on a pipe with no one to read it */
18 #define SIGALRM 14 /* alarm clock */
19 #define SIGTERM 15 /* software termination signal from kill */
20 #define SIGURG 16 /* urgent condition on IO channel */
21 #define SIGSTOP 17 /* sendable stop signal not from tty */
22 #define SIGTSTP 18 /* stop signal from tty */
23 #define SIGCONT 19 /* continue a stopped process */
24 #define SIGCHLD 20 /* to parent on child stop or exit */
25 #define SIGCLD 20 /* System V name for SIGCHLD */
26 #define SIGTTIN 21 /* to readers pgrp upon background tty read */
27 #define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */
28 #define SIGIO 23 /* input/output possible signal */
29 #define SIGPOLL SIGIO /* System V name for SIGIO */
30 #define SIGXCPU 24 /* exceeded CPU time limit */
31 #define SIGXFSZ 25 /* exceeded file size limit */
32 #define SIGVTALRM 26 /* virtual time alarm */
33 #define SIGPROF 27 /* profiling time alarm */
34 #define SIGWINCH 28 /* window changed */
35 #define SIGLOST 29 /* resource lost (eg, record-lock lost) */
36 #define SIGUSR1 30 /* user defined signal 1 */
37 #define SIGUSR2 31 /* user defined signal 2 */
39 /* signal() args & returns */
40 #define SIG_ERR (void (*)())-1
41 #define SIG_DFL (void (*)())0
42 #define SIG_IGN (void (*)())1
43 #define SIG_HOLD (void (*)())3