fix up leftover, incorrect NSIG definitions in arch-specific signal.h
[musl] / arch / microblaze / 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[39];
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 } ucontext_t;
15
16 #define SA_NOCLDSTOP  1
17 #define SA_NOCLDWAIT  2
18 #define SA_SIGINFO    4
19 #define SA_ONSTACK    0x08000000
20 #define SA_RESTART    0x10000000
21 #define SA_NODEFER    0x40000000
22 #define SA_RESETHAND  0x80000000
23 #define SA_RESTORER   0x04000000
24
25 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
26 struct sigcontext
27 {
28         struct {
29                 unsigned long r0, r1, r2, r3, r4, r5, r6, r7;
30                 unsigned long r8, r9, r10, r11, r12, r13, r14, r15;
31                 unsigned long r16, r17, r18, r19, r20, r21, r22, r23;
32                 unsigned long r24, r25, r26, r27, r28, r29, r30, r31;
33                 unsigned long pc, msr, ear, esr, fsr;
34                 int pt_mode;
35         } regs;
36         unsigned long oldmask;
37 };
38 #endif
39
40 #endif
41
42 #define SIGHUP    1
43 #define SIGINT    2
44 #define SIGQUIT   3
45 #define SIGILL    4
46 #define SIGTRAP   5
47 #define SIGABRT   6
48 #define SIGBUS    7
49 #define SIGFPE    8
50 #define SIGKILL   9
51 #define SIGUSR1   10
52 #define SIGSEGV   11
53 #define SIGUSR2   12
54 #define SIGPIPE   13
55 #define SIGALRM   14
56 #define SIGTERM   15
57 #define SIGSTKFLT 16
58 #define SIGCHLD   17
59 #define SIGCONT   18
60 #define SIGSTOP   19
61 #define SIGTSTP   20
62 #define SIGTTIN   21
63 #define SIGTTOU   22
64 #define SIGURG    23
65 #define SIGXCPU   24
66 #define SIGXFSZ   25
67 #define SIGVTALRM 26
68 #define SIGPROF   27
69 #define SIGWINCH  28
70 #define SIGIO     29
71 #define SIGPOLL   29
72 #define SIGPWR    30
73 #define SIGSYS    31
74 #define SIGUNUSED SIGSYS
75
76 #define _NSIG 65