1 #ifndef _LINUX_SIGNAL_H
2 #define _LINUX_SIGNAL_H
3
4 typedef unsigned int sigset_t;
5
6 #define _NSIG 32
7 #define NSIG _NSIG
8
9 #define SIGHUP 1
10 #define SIGINT 2
11 #define SIGQUIT 3
12 #define SIGILL 4
13 #define SIGTRAP 5
14 #define SIGABRT 6
15 #define SIGIOT 6
16 #define SIGUNUSED 7
17 #define SIGFPE 8
18 #define SIGKILL 9
19 #define SIGUSR1 10
20 #define SIGSEGV 11
21 #define SIGUSR2 12
22 #define SIGPIPE 13
23 #define SIGALRM 14
24 #define SIGTERM 15
25 #define SIGSTKFLT 16
26 #define SIGCHLD 17
27 #define SIGCONT 18
28 #define SIGSTOP 19
29 #define SIGTSTP 20
30 #define SIGTTIN 21
31 #define SIGTTOU 22
32
33
34
35
36
37
38
39
40
41
42
43
44
45 #define SIGVTALRM 26
46 #define SIGPROF 27
47
48 #define SIGWINCH 28
49
50
51
52
53
54 #define SA_NOCLDSTOP 1
55 #define SA_INTERRUPT 0x20000000
56 #define SA_NOMASK 0x40000000
57 #define SA_ONESHOT 0x80000000
58
59 #define SIG_BLOCK 0
60 #define SIG_UNBLOCK 1
61 #define SIG_SETMASK 2
62
63 #define SIG_DFL ((void (*)(int))0)
64 #define SIG_IGN ((void (*)(int))1)
65 #define SIG_ERR ((void (*)(int))-1)
66
67 struct sigaction {
68 void (*sa_handler)(int);
69 sigset_t sa_mask;
70 int sa_flags;
71 void (*sa_restorer)(void);
72 };
73
74 #endif