1 /* $Id: signal.h,v 1.5 1994/06/24 11:05:35 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
10 #define _NSIG 32 /* number of signals used */
12 #define _NSIG 16 /* number of signals used */
16 #define SIGHUP 1 /* hangup */
17 #define SIGINT 2 /* interrupt (DEL) */
18 #define SIGQUIT 3 /* quit (ASCII FS) */
19 #define SIGILL 4 /* illegal instruction */
20 #define SIGTRAP 5 /* trace trap (not reset when caught) */
21 #define SIGABRT 6 /* IOT instruction */
22 #define SIGIOT 6 /* SIGABRT for people who speak PDP-11 */
23 #define SIGEMT 7 /* EMT instruction */
24 #define SIGFPE 8 /* floating point exception */
25 #define SIGKILL 9 /* kill (cannot be caught or ignored) */
26 #define SIGBUS 10 /* bus error */
27 #define SIGSEGV 11 /* segmentation violation */
28 #define SIGSYS 12 /* bad argument to system call */
29 #define SIGPIPE 13 /* write on a pipe with no one to read it */
30 #define SIGALRM 14 /* alarm clock */
31 #define SIGTERM 15 /* software termination signal from kill */
34 #define SIGURG 16 /* urgent condition on IO channel */
35 #define SIGCHLD 20 /* child process terminated or stopped */
36 #define SIGCONT 19 /* continue if stopped */
37 #define SIGSTOP 17 /* stop signal */
38 #define SIGTSTP 18 /* interactive stop signal */
39 #define SIGTTIN 21 /* background process wants to read */
40 #define SIGTTOU 22 /* background process wants to write */
41 #define SIGIO 23 /* input/output possible signal */
42 #define SIGPOLL SIGIO /* System V name for SIGIO */
43 #define SIGXCPU 24 /* exceeded CPU time limit */
44 #define SIGXFSZ 25 /* exceeded file size limit */
45 #define SIGVTALRM 26 /* virtual time alarm */
46 #define SIGPROF 27 /* profiling time alarm */
47 #define SIGWINCH 28 /* window changed */
48 #define SIGLOST 29 /* resource lost (eg, record-lock lost) */
49 #define SIGUSR1 30 /* user defined signal 1 */
50 #define SIGUSR2 31 /* user defined signal 2 */
54 #define SIG_DFL ((void (*)())0) /* default signal handling */
55 #define SIG_IGN ((void (*)())1) /* ignore signal */
56 #define SIG_ERR ((void (*)())-1)
60 #endif /* _SIGNAL_H */