| #ifndef TARGET_OS_SIGINFO_H |
| #define TARGET_OS_SIGINFO_H |
| #define TARGET_NSIG 32 /* counting 0; could be 33 (mask is 1-32) */ |
| #define TARGET_NSIG_BPW (sizeof(uint32_t) * 8) |
| #define TARGET_NSIG_WORDS (TARGET_NSIG / TARGET_NSIG_BPW) |
| /* this struct defines a stack used during syscall handling */ |
| typedef struct target_sigaltstack { |
| uint32_t __bits[TARGET_NSIG_WORDS]; |
| struct target_sigaction { |
| /* Compare to sys/siginfo.h */ |
| typedef union target_sigval { |
| #if TARGET_ABI_BITS == 64 |
| typedef union target_siginfo { |
| struct target_ksiginfo _info; |
| #define target_si_signo _info._signo |
| #define target_si_code _info._code |
| #define target_si_errno _info._errno |
| #define target_si_addr _info._reason._fault._addr |
| #define TARGET_SEGV_MAPERR 1 |
| #define TARGET_SEGV_ACCERR 2 |
| #define TARGET_TRAP_BRKPT 1 |
| #define TARGET_TRAP_TRACE 2 |
| #endif /* TARGET_OS_SIGINFO_H */ |