125 |
|
|
126 |
|
// Irix 5 or 6 on MIPS |
127 |
|
#if (defined(sgi) || defined(__sgi)) && (defined(SYSTYPE_SVR4) || defined(__SYSTYPE_SVR4)) |
128 |
+ |
#include <ucontext.h> |
129 |
|
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, int code, struct sigcontext *scp |
130 |
|
#define SIGSEGV_FAULT_ADDRESS scp->sc_badvaddr |
131 |
|
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGSEGV) |
132 |
|
#endif |
133 |
|
|
134 |
+ |
// HP-UX |
135 |
+ |
#if (defined(hpux) || defined(__hpux__)) |
136 |
+ |
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, int code, struct sigcontext *scp |
137 |
+ |
#define SIGSEGV_FAULT_ADDRESS scp->sc_sl.sl_ss.ss_narrow.ss_cr21 |
138 |
+ |
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGSEGV) FAULT_HANDLER(SIGBUS) |
139 |
+ |
#endif |
140 |
+ |
|
141 |
|
// OSF/1 on Alpha |
142 |
|
#if defined(__osf__) |
143 |
+ |
#include <ucontext.h> |
144 |
|
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, int code, struct sigcontext *scp |
145 |
|
#define SIGSEGV_FAULT_ADDRESS scp->sc_traparg_a0 |
146 |
|
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGSEGV) |