1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 #ifndef _IBCS2_SIGNAL_H
35 #define _IBCS2_SIGNAL_H
36
37 #define IBCS2_SIGHUP 1
38 #define IBCS2_SIGINT 2
39 #define IBCS2_SIGQUIT 3
40 #define IBCS2_SIGILL 4
41 #define IBCS2_SIGTRAP 5
42 #define IBCS2_SIGIOT 6
43 #define IBCS2_SIGABRT 6
44 #define IBCS2_SIGEMT 7
45 #define IBCS2_SIGFPE 8
46 #define IBCS2_SIGKILL 9
47 #define IBCS2_SIGBUS 10
48 #define IBCS2_SIGSEGV 11
49 #define IBCS2_SIGSYS 12
50 #define IBCS2_SIGPIPE 13
51 #define IBCS2_SIGALRM 14
52 #define IBCS2_SIGTERM 15
53 #define IBCS2_SIGUSR1 16
54 #define IBCS2_SIGUSR2 17
55 #define IBCS2_SIGCLD 18
56 #define IBCS2_SIGPWR 19
57 #define IBCS2_SIGWINCH 20
58 #define IBCS2_SIGPOLL 22
59 #define IBCS2_NSIG 32
60
61
62
63
64 #define IBCS2_SIGSTOP 23
65 #define IBCS2_SIGTSTP 24
66 #define IBCS2_SIGCONT 25
67 #define IBCS2_SIGTTIN 26
68 #define IBCS2_SIGTTOU 27
69 #define IBCS2_SIGVTALRM 28
70 #define IBCS2_SIGPROF 29
71
72 #define IBCS2_SIGNO_MASK 0x00FF
73 #define IBCS2_SIGNAL_MASK 0x0000
74 #define IBCS2_SIGSET_MASK 0x0100
75 #define IBCS2_SIGHOLD_MASK 0x0200
76 #define IBCS2_SIGRELSE_MASK 0x0400
77 #define IBCS2_SIGIGNORE_MASK 0x0800
78 #define IBCS2_SIGPAUSE_MASK 0x1000
79
80 #define IBCS2_SIGNO(x) ((x) & IBCS2_SIGNO_MASK)
81 #define IBCS2_SIGCALL(x) ((x) & ~IBCS2_SIGNO_MASK)
82
83 #define IBCS2_SIG_DFL (void(*)(int)) 0
84 #define IBCS2_SIG_ERR (void(*)(int)) -1
85 #define IBCS2_SIG_IGN (void(*)(int)) 1
86 #define IBCS2_SIG_HOLD (void(*)(int)) 2
87
88 #define IBCS2_SIG_SETMASK 0
89 #define IBCS2_SIG_BLOCK 1
90 #define IBCS2_SIG_UNBLOCK 2
91
92 typedef long ibcs2_sigset_t;
93 typedef void (*ibcs2_sig_t)(int);
94
95 struct ibcs2_sigaction {
96 ibcs2_sig_t sa__handler;
97 ibcs2_sigset_t sa_mask;
98 int sa_flags;
99 };
100
101
102 #define IBCS2_SA_NOCLDSTOP 1
103
104 extern int bsd_to_ibcs2_sig[];
105
106 #endif