aed372ebe5fcfa2dd6fdd63cbda8d875d3de29bf
[musl] / arch / mips / 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 sc_regmask, sc_status;
30         unsigned long long sc_pc, sc_regs[32], sc_fpregs[32];
31         unsigned sc_ownedfp, sc_fpc_csr, sc_fpc_eir, sc_used_math, sc_dsp;
32         unsigned long long sc_mdhi, sc_mdlo;
33         unsigned long sc_hi1, sc_lo1, sc_hi2, sc_lo2, sc_hi3, sc_lo3;
34 };
35 #define NSIG      64
36 #endif
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 SIGIOT    SIGABRT
47 #define SIGSTKFLT 7
48 #define SIGFPE    8
49 #define SIGKILL   9
50 #define SIGBUS    10
51 #define SIGSEGV   11
52 #define SIGSYS    12
53 #define SIGPIPE   13
54 #define SIGALRM   14
55 #define SIGTERM   15
56 #define SIGUSR1   16
57 #define SIGUSR2   17
58 #define SIGCHLD   18
59 #define SIGPWR    19
60 #define SIGWINCH  20
61 #define SIGURG    21
62 #define SIGIO     22
63 #define SIGPOLL   SIGIO
64 #define SIGSTOP   23
65 #define SIGTSTP   24
66 #define SIGCONT   25
67 #define SIGTTIN   26
68 #define SIGTTOU   27
69 #define SIGVTALRM 28
70 #define SIGPROF   29
71 #define SIGXCPU   30
72 #define SIGXFSZ   31
73 #define SIGUNUSED SIGSYS