|
|
1.1 root 1: #ifndef _SIGNAL_H
2:
3: #define _SIGNAL_H
4:
5:
6:
7: #ifdef __cplusplus
8:
9: extern "C" {
10:
11: #endif
12:
13:
14:
15: #define NSIG 31 /* number of signals recognized */
16:
17:
18:
19: #define SIGNULL 0 /* not really a signal */
20:
21: #define SIGHUP 1 /* hangup signal */
22:
23: #define SIGINT 2 /* sent by ^C */
24:
25: #define SIGQUIT 3 /* quit signal */
26:
27: #define SIGILL 4 /* illegal instruction */
28:
29: #define SIGTRAP 5 /* trace trap */
30:
31: #define SIGABRT 6 /* abort signal */
32:
33: #define SIGPRIV 7 /* privilege violation */
34:
35: #define SIGFPE 8 /* divide by zero */
36:
37: #define SIGKILL 9 /* cannot be ignored */
38:
39: #define SIGBUS 10 /* bus error */
40:
41: #define SIGSEGV 11 /* illegal memory reference */
42:
43: #define SIGSYS 12 /* bad argument to a system call */
44:
45: #define SIGPIPE 13 /* broken pipe */
46:
47: #define SIGALRM 14 /* alarm clock */
48:
49: #define SIGTERM 15 /* software termination signal */
50:
51:
52:
53: #define SIGURG 16 /* urgent condition on I/O channel */
54:
55: #define SIGSTOP 17 /* stop signal not from terminal */
56:
57: #define SIGTSTP 18 /* stop signal from terminal */
58:
59: #define SIGCONT 19 /* continue stopped process */
60:
61: #define SIGCHLD 20 /* child stopped or exited */
62:
63: #define SIGTTIN 21 /* read by background process */
64:
65: #define SIGTTOU 22 /* write by background process */
66:
67: #define SIGIO 23 /* I/O possible on a descriptor */
68:
69: #define SIGXCPU 24 /* CPU time exhausted */
70:
71: #define SIGXFSZ 25 /* file size limited exceeded */
72:
73: #define SIGVTALRM 26 /* virtual timer alarm */
74:
75: #define SIGPROF 27 /* profiling timer expired */
76:
77: #define SIGWINCH 28 /* window size changed */
78:
79: #define SIGUSR1 29 /* user signal 1 */
80:
81: #define SIGUSR2 30 /* user signal 2 */
82:
83:
84:
85: #define SIG_DFL 0
86:
87: #define SIG_IGN 1
88:
89:
90:
91: /* sigaction: extended POSIX signal handling facility */
92:
93:
94:
95: struct sigaction {
96:
97: ulong sa_handler; /* pointer to signal handler */
98:
99: ulong sa_mask; /* additional signals masked during delivery */
100:
101: ushort sa_flags; /* signal specific flags */
102:
103: /* signal flags */
104:
105: #define SA_NOCLDSTOP 1 /* don't send SIGCHLD when child stops */
106:
107: };
108:
109:
110:
111: #ifdef __cplusplus
112:
113: }
114:
115: #endif
116:
117:
118:
119: #endif /* _SIGNAL_H */
120:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.