1: #ifndef NSIG
2:
3: #ifdef MENLO_JCL
4: #define NSIG 32
5: #else
6: #define NSIG 17
7: #endif
8:
9: #define SIGHUP 1 /* hangup */
10: #define SIGINT 2 /* interrupt */
11: #define SIGQUIT 3 /* quit */
12: #define SIGILL 4 /* illegal instruction (not reset when caught) */
13: #define SIGTRAP 5 /* trace trap (not reset when caught) */
14: #define SIGIOT 6 /* IOT instruction */
15: #define SIGEMT 7 /* EMT instruction */
16: #define SIGFPE 8 /* floating point exception */
17: #define SIGKILL 9 /* kill (cannot be caught or ignored) */
18: #define SIGBUS 10 /* bus error */
19: #define SIGSEGV 11 /* segmentation violation */
20: #define SIGSYS 12 /* bad argument to system call */
21: #define SIGPIPE 13 /* write on a pipe with no one to read it */
22: #define SIGALRM 14 /* alarm clock */
23: #define SIGTERM 15 /* software termination signal from kill */
24:
25:
26: #ifdef MENLO_JCL
27: #define SIGSTOP 17 /* sendable stop signal not from tty */
28: #define SIGTSTP 18 /* stop signal from tty */
29: #define SIGCONT 19 /* continue a stopped process */
30: #define SIGCHLD 20 /* to parent on child stop or exit */
31: #define SIGTTIN 21 /* to readers pgrp upon background tty read */
32: #define SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */
33: #define SIGTINT 23 /* to pgrp on every input character if LINTRUP */
34: #define SIGXCPU 24 /* exceeded CPU time limit */
35: #define SIGXFSZ 25 /* exceeded file size limit */
36: #endif
37:
38: #ifndef KERNEL
39: int (*signal())();
40: #endif
41:
42: #define BADSIG (int (*)())-1
43: #define SIG_DFL (int (*)())0
44: #define SIG_IGN (int (*)())1
45:
46: #ifdef MENLO_JCL
47:
48: #ifdef KERNEL
49: #define SIG_CATCH (int (*)())2
50: #endif
51: #define SIG_HOLD (int (*)())3
52:
53: #define SIGISDEFER(x) (((int)(x) & 1) != 0)
54: #define SIGUNDEFER(x) (int (*)())((int)(x) &~ 1)
55: #define DEFERSIG(x) (int (*)())((int)(x) | 1)
56:
57: #define SIGNUMMASK 0377 /* to extract pure signal number */
58: #define SIGDOPAUSE 0400 /* do pause after setting action */
59: #define SIGDORTI 01000 /* do ret+rti after setting action */
60: #endif
61:
62: #endif
Defined macros
NSIG
defined in line
6; used 1 times
SIGHUP
defined in line
9;
never used