src/timer.c
/************************************************************************/
/*									*/
/*			   i n t _ b l o c k				*/
/*									*/
/*	Temporarily turn off interrupts.				*/
/*									*/
/*	NOTE that these interrupts must also be turned off in ldeboot's	*/
/*	forking code; if you change these, go fix that one too		*/
/*									*/
/************************************************************************/
i n t _ b l o c k

Temporarily turn off interrupts.

NOTE that these interrupts must also be turned off in ldeboot's
forking code; if you change these, go fix that one too
i n t _ b l o c k Temporarily turn off interrupts . NOTE that these interrupts must also be turned off in ldeboot ' s forking code ; if you change these go fix that one too
void int_block() {
#ifdef DOS
  _dos_setvect(0x1c, prev_int_1c);
#else 
  sigset_t signals;
  sigemptyset(&signals);
  sigaddset(&signals, SIGVTALRM);
  sigaddset(&signals, SIGIO);
  sigaddset(&signals, SIGALRM);
  sigaddset(&signals, SIGXFSZ);
#ifdef FLTINT
  sigaddset(&signals, SIGFPE);
#endif
  sigprocmask(SIG_BLOCK, &signals, NULL);
#endif 
}
void int_block ( ) { #ifdef DOS _dos_setvect ( 0x1c , prev_int_1c ) ; #else sigset_t signals ; sigemptyset ( & signals ) ; sigaddset ( & signals , SIGVTALRM ) ; sigaddset ( & signals , SIGIO ) ; sigaddset ( & signals , SIGALRM ) ; sigaddset ( & signals , SIGXFSZ ) ; #ifdef FLTINT sigaddset ( & signals , SIGFPE ) ; #endif sigprocmask ( SIG_BLOCK , & signals , NULL ) ; #endif }
i n t _ b l o c k
i n t _ b l o c k
/* temporarily turn off interrupts */ /* DOS */ /* DOS */