12 static sigset_t all_masked;
14 static sigjmp_buf ill_jmp;
15 static void ill_handler (
int sig) { siglongjmp(ill_jmp,sig); }
32 #if defined(__GNUC__) && __GNUC__>=2
38 struct sigaction ill_oact,ill_act;
45 if ((e=getenv(
"OPENSSL_armcap")))
51 sigfillset(&all_masked);
52 sigdelset(&all_masked,SIGILL);
53 sigdelset(&all_masked,SIGTRAP);
54 sigdelset(&all_masked,SIGFPE);
55 sigdelset(&all_masked,SIGBUS);
56 sigdelset(&all_masked,SIGSEGV);
60 memset(&ill_act,0,
sizeof(ill_act));
61 ill_act.sa_handler = ill_handler;
62 ill_act.sa_mask = all_masked;
64 sigprocmask(SIG_SETMASK,&ill_act.sa_mask,&oset);
65 sigaction(SIGILL,&ill_act,&ill_oact);
67 if (sigsetjmp(ill_jmp,1) == 0)
72 if (sigsetjmp(ill_jmp,1) == 0)
78 sigaction (SIGILL,&ill_oact,NULL);
79 sigprocmask(SIG_SETMASK,&oset,NULL);