48 |
|
|
49 |
#endif |
#endif |
50 |
|
|
51 |
|
#if defined(DARWIN) |
52 |
|
#include <sys/ucontext.h> |
53 |
|
#endif |
54 |
|
|
55 |
#include <signal.h> |
#include <signal.h> |
56 |
|
|
57 |
/* void segmentation_catcher(void); */ |
/* void segmentation_catcher(void); */ |
1444 |
#ifndef BSD |
#ifndef BSD |
1445 |
INSTALL_MPROTECT_HANDLER; |
INSTALL_MPROTECT_HANDLER; |
1446 |
#endif |
#endif |
1447 |
|
|
1448 |
|
#if !defined(DARWIN) |
1449 |
/* if (SIGSEGV == SIGPROTV) */ |
/* if (SIGSEGV == SIGPROTV) */ |
1450 |
segmentation_catcher(SIGSEGV); |
segmentation_catcher(SIGSEGV); |
1451 |
|
#else |
1452 |
|
/* segmentation_catcher(SIGBUS,code,scp); */ |
1453 |
|
/* for the sake of exactness */ |
1454 |
|
segmentation_catcher(SIGBUS); |
1455 |
|
#endif |
1456 |
|
|
1457 |
} |
} |
1458 |
|
|