OLD | NEW |
(Empty) | |
| 1 #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ |
| 2 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 3 |
| 4 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 5 #define MINSIGSTKSZ 2048 |
| 6 #define SIGSTKSZ 8192 |
| 7 #endif |
| 8 |
| 9 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |
| 10 typedef unsigned long greg_t, gregset_t[38]; |
| 11 typedef struct sigcontext |
| 12 { |
| 13 struct { |
| 14 unsigned long r0, r1, r2, r3, r4, r5, r6, r7; |
| 15 unsigned long r8, r9, r10, r11, r12, r13, r14, r15; |
| 16 unsigned long r16, r17, r18, r19, r20, r21, r22, r23; |
| 17 unsigned long r24, r25, r26, r27, r28, r29, r30, r31; |
| 18 unsigned long pc, msr, ear, esr, fsr; |
| 19 int pt_mode; |
| 20 } regs; |
| 21 unsigned long oldmask; |
| 22 } mcontext_t; |
| 23 #else |
| 24 typedef struct { |
| 25 unsigned long __regs[39]; |
| 26 } mcontext_t; |
| 27 #endif |
| 28 |
| 29 struct sigaltstack { |
| 30 void *ss_sp; |
| 31 int ss_flags; |
| 32 size_t ss_size; |
| 33 }; |
| 34 |
| 35 typedef struct __ucontext { |
| 36 unsigned long uc_flags; |
| 37 struct __ucontext *uc_link; |
| 38 stack_t uc_stack; |
| 39 mcontext_t uc_mcontext; |
| 40 sigset_t uc_sigmask; |
| 41 } ucontext_t; |
| 42 |
| 43 #define SA_NOCLDSTOP 1 |
| 44 #define SA_NOCLDWAIT 2 |
| 45 #define SA_SIGINFO 4 |
| 46 #define SA_ONSTACK 0x08000000 |
| 47 #define SA_RESTART 0x10000000 |
| 48 #define SA_NODEFER 0x40000000 |
| 49 #define SA_RESETHAND 0x80000000 |
| 50 #define SA_RESTORER 0x04000000 |
| 51 |
| 52 #endif |
| 53 |
| 54 #define SIGHUP 1 |
| 55 #define SIGINT 2 |
| 56 #define SIGQUIT 3 |
| 57 #define SIGILL 4 |
| 58 #define SIGTRAP 5 |
| 59 #define SIGABRT 6 |
| 60 #define SIGIOT SIGABRT |
| 61 #define SIGBUS 7 |
| 62 #define SIGFPE 8 |
| 63 #define SIGKILL 9 |
| 64 #define SIGUSR1 10 |
| 65 #define SIGSEGV 11 |
| 66 #define SIGUSR2 12 |
| 67 #define SIGPIPE 13 |
| 68 #define SIGALRM 14 |
| 69 #define SIGTERM 15 |
| 70 #define SIGSTKFLT 16 |
| 71 #define SIGCHLD 17 |
| 72 #define SIGCONT 18 |
| 73 #define SIGSTOP 19 |
| 74 #define SIGTSTP 20 |
| 75 #define SIGTTIN 21 |
| 76 #define SIGTTOU 22 |
| 77 #define SIGURG 23 |
| 78 #define SIGXCPU 24 |
| 79 #define SIGXFSZ 25 |
| 80 #define SIGVTALRM 26 |
| 81 #define SIGPROF 27 |
| 82 #define SIGWINCH 28 |
| 83 #define SIGIO 29 |
| 84 #define SIGPOLL 29 |
| 85 #define SIGPWR 30 |
| 86 #define SIGSYS 31 |
| 87 #define SIGUNUSED SIGSYS |
| 88 |
| 89 #define _NSIG 65 |
OLD | NEW |