more mips bits-header fixes
[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 __mc1[2];
6         unsigned long long __mc2[65];
7         unsigned __mc3[5];
8         unsigned long long __mc4[2];
9         unsigned __mc5[6];
10 } mcontext_t;
11
12 typedef struct __ucontext {
13         unsigned long uc_flags;
14         struct __ucontext *uc_link;
15         stack_t uc_stack;
16         mcontext_t uc_mcontext;
17         sigset_t uc_sigmask;
18         unsigned long uc_regspace[128];
19 } ucontext_t;
20
21 #define SA_NOCLDSTOP  1
22 #define SA_NOCLDWAIT  0x10000
23 #define SA_SIGINFO    8
24 #define SA_ONSTACK    0x08000000
25 #define SA_RESTART    0x10000000
26 #define SA_NODEFER    0x40000000
27 #define SA_RESETHAND  0x80000000
28 #define SA_RESTORER   0x04000000
29
30 #define SIG_BLOCK     1
31 #define SIG_UNBLOCK   2
32 #define SIG_SETMASK   3
33
34 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
35 struct sigcontext
36 {
37         unsigned sc_regmask, sc_status;
38         unsigned long long sc_pc, sc_regs[32], sc_fpregs[32];
39         unsigned sc_ownedfp, sc_fpc_csr, sc_fpc_eir, sc_used_math, sc_dsp;
40         unsigned long long sc_mdhi, sc_mdlo;
41         unsigned long sc_hi1, sc_lo1, sc_hi2, sc_lo2, sc_hi3, sc_lo3;
42 };
43 #define NSIG      64
44 #endif
45
46 #endif
47
48 #define SIGHUP    1
49 #define SIGINT    2
50 #define SIGQUIT   3
51 #define SIGILL    4
52 #define SIGTRAP   5
53 #define SIGABRT   6
54 #define SIGIOT    SIGABRT
55 #define SIGSTKFLT 7
56 #define SIGFPE    8
57 #define SIGKILL   9
58 #define SIGBUS    10
59 #define SIGSEGV   11
60 #define SIGSYS    12
61 #define SIGPIPE   13
62 #define SIGALRM   14
63 #define SIGTERM   15
64 #define SIGUSR1   16
65 #define SIGUSR2   17
66 #define SIGCHLD   18
67 #define SIGPWR    19
68 #define SIGWINCH  20
69 #define SIGURG    21
70 #define SIGIO     22
71 #define SIGPOLL   SIGIO
72 #define SIGSTOP   23
73 #define SIGTSTP   24
74 #define SIGCONT   25
75 #define SIGTTIN   26
76 #define SIGTTOU   27
77 #define SIGVTALRM 28
78 #define SIGPROF   29
79 #define SIGXCPU   30
80 #define SIGXFSZ   31
81 #define SIGUNUSED SIGSYS