1 #ifndef TARGET_OS_SIGINFO_H
2 #define TARGET_OS_SIGINFO_H
4 #define TARGET_NSIG 32 /* counting 0; could be 33 (mask is 1-32) */
5 #define TARGET_NSIG_BPW (sizeof(uint32_t) * 8)
6 #define TARGET_NSIG_WORDS (TARGET_NSIG / TARGET_NSIG_BPW)
8 /* this struct defines a stack used during syscall handling */
9 typedef struct target_sigaltstack
{
16 uint32_t __bits
[TARGET_NSIG_WORDS
];
19 struct target_sigaction
{
20 abi_ulong _sa_handler
;
22 target_sigset_t sa_mask
;
25 /* Compare to sys/siginfo.h */
26 typedef union target_sigval
{
31 struct target_ksiginfo
{
35 #if TARGET_ABI_BITS == 64
42 target_sigval_t _value
;
65 typedef union target_siginfo
{
67 struct target_ksiginfo _info
;
70 #define target_si_signo _info._signo
71 #define target_si_code _info._code
72 #define target_si_errno _info._errno
73 #define target_si_addr _info._reason._fault._addr
75 #define TARGET_SEGV_MAPERR 1
76 #define TARGET_SEGV_ACCERR 2
78 #define TARGET_TRAP_BRKPT 1
79 #define TARGET_TRAP_TRACE 2
82 #endif /* TARGET_OS_SIGINFO_H */