add back NSIG, removed from powerpc in last commit, but for all archs
[musl] / arch / arm / bits / signal.h
1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
2  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
3
4 typedef struct {
5         unsigned long __regs[21];
6 } mcontext_t;
7
8 typedef struct __ucontext {
9         unsigned long uc_flags;
10         struct __ucontext *uc_link;
11         stack_t uc_stack;
12         mcontext_t uc_mcontext;
13         sigset_t uc_sigmask;
14         unsigned long uc_regspace[128];
15 } ucontext_t;
16
17 #define SA_NOCLDSTOP  1
18 #define SA_NOCLDWAIT  2
19 #define SA_SIGINFO    4
20 #define SA_ONSTACK    0x08000000
21 #define SA_RESTART    0x10000000
22 #define SA_NODEFER    0x40000000
23 #define SA_RESETHAND  0x80000000
24 #define SA_RESTORER   0x04000000
25
26 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
27 struct sigcontext
28 {
29         unsigned long trap_no, error_code, oldmask;
30         unsigned long arm_r0, arm_r1, arm_r2, arm_r3;
31         unsigned long arm_r4, arm_r5, arm_r6, arm_r7;
32         unsigned long arm_r8, arm_r9, arm_r10, arm_fp;
33         unsigned long arm_ip, arm_sp, arm_lr, arm_pc;
34         unsigned long arm_cpsr, fault_address;
35 };
36 #define NSIG      64
37 #endif
38
39 #endif
40
41 #define SIGHUP    1
42 #define SIGINT    2
43 #define SIGQUIT   3
44 #define SIGILL    4
45 #define SIGTRAP   5
46 #define SIGABRT   6
47 #define SIGBUS    7
48 #define SIGFPE    8
49 #define SIGKILL   9
50 #define SIGUSR1   10
51 #define SIGSEGV   11
52 #define SIGUSR2   12
53 #define SIGPIPE   13
54 #define SIGALRM   14
55 #define SIGTERM   15
56 #define SIGSTKFLT 16
57 #define SIGCHLD   17
58 #define SIGCONT   18
59 #define SIGSTOP   19
60 #define SIGTSTP   20
61 #define SIGTTIN   21
62 #define SIGTTOU   22
63 #define SIGURG    23
64 #define SIGXCPU   24
65 #define SIGXFSZ   25
66 #define SIGVTALRM 26
67 #define SIGPROF   27
68 #define SIGWINCH  28
69 #define SIGIO     29
70 #define SIGPOLL   29
71 #define SIGPWR    30
72 #define SIGSYS    31
73 #define SIGUNUSED SIGSYS
74
75 #define _NSIG 65