1 #ifndef _ASMAXP_SIGNAL_H
2 #define _ASMAXP_SIGNAL_H
3
4 typedef unsigned long sigset_t;
5
6 #define _NSIG 32
7 #define NSIG _NSIG
8
9
10
11
12
13 #define SIGHUP 1
14 #define SIGINT 2
15 #define SIGQUIT 3
16 #define SIGILL 4
17 #define SIGTRAP 5
18 #define SIGABRT 6
19 #define SIGEMT 7
20 #define SIGFPE 8
21 #define SIGKILL 9
22 #define SIGBUS 10
23 #define SIGSEGV 11
24 #define SIGSYS 12
25 #define SIGPIPE 13
26 #define SIGALRM 14
27 #define SIGTERM 15
28 #define SIGURG 16
29 #define SIGSTOP 17
30 #define SIGTSTP 18
31 #define SIGCONT 19
32 #define SIGCHLD 20
33 #define SIGTTIN 21
34 #define SIGTTOU 22
35 #define SIGIO 23
36 #define SIGXCPU 24
37 #define SIGXFSZ 25
38 #define SIGVTALRM 26
39 #define SIGPROF 27
40 #define SIGWINCH 28
41 #define SIGINFO 29
42 #define SIGUSR1 30
43 #define SIGUSR2 31
44
45 #define SIGPOLL SIGIO
46
47
48
49
50
51
52
53
54
55 #define SA_NOCLDSTOP 0x00000004
56
57 #define SA_STACK 0x00000001
58 #define SA_RESTART 0x00000002
59 #define SA_INTERRUPT 0x20000000
60 #define SA_NOMASK 0x00000008
61 #define SA_ONESHOT 0x00000010
62
63 #define SIG_BLOCK 1
64 #define SIG_UNBLOCK 2
65 #define SIG_SETMASK 3
66
67
68 typedef void (*__sighandler_t)(int);
69
70 #define SIG_DFL ((__sighandler_t)0)
71 #define SIG_IGN ((__sighandler_t)1)
72 #define SIG_ERR ((__sighandler_t)-1)
73
74 struct sigaction {
75 __sighandler_t sa_handler;
76 sigset_t sa_mask;
77 unsigned int sa_flags;
78 };
79
80 #ifdef __KERNEL__
81 #include <asm/sigcontext.h>
82 #endif
83
84 #endif