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