mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-17 08:33:48 +00:00
Remove old (NEVER) defs for int_timer_on|off. (#191)
These were replaced by other calls that manage more signals than just the `SIGVTALRM`.
This commit is contained in:
parent
c83741eb06
commit
4e65eb5d9b
40
src/timer.c
40
src/timer.c
@ -668,46 +668,6 @@ void int_unblock() {
|
||||
void int_timer_on() { int_unblock(); }
|
||||
void int_timer_off() { int_block(); }
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef NEVER
|
||||
|
||||
void int_timer_off() {
|
||||
#ifdef SYSVSIGNALS
|
||||
sigignore(SIGVTALRM);
|
||||
#else
|
||||
struct sigvec tmpv, timeroffv;
|
||||
|
||||
timeroffv.sv_handler = SIG_IGN;
|
||||
timeroffv.sv_mask = timeroffv.sv_flags = 0;
|
||||
sigvec(SIGVTALRM, &timeroffv, &tmpv);
|
||||
#endif /* SYSVSIGNALS */
|
||||
}
|
||||
|
||||
void int_timer_on() {
|
||||
#ifdef SYSVSIGNALS
|
||||
#ifdef SIGVTALRM
|
||||
SIGERRCHK(sigset(SIGVTALRM, int_timer_service), "sigset vtalrm");
|
||||
#endif /* SIGVTALRM */
|
||||
|
||||
#else
|
||||
struct sigvec tmpv;
|
||||
|
||||
sigvec(SIGVTALRM, &timerv, &tmpv);
|
||||
#endif /* SYSVSIGNALS */
|
||||
}
|
||||
|
||||
#endif /* NEVER */
|
||||
|
||||
#ifdef FLTINT
|
||||
/************************************************************************/
|
||||
/* */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user