22 static char rcsid[] =
"$Header: /l/spencer/src/urt/get/getx11/RCS/timer.c,v 3.0.1.3 1992/03/04 19:31:40 spencer Exp $";
51 register struct itimerval *itp = &itv;
57 timerclear(&itp->it_interval);
58 itp->it_value.tv_sec = n /
USPS;
59 itp->it_value.tv_usec = n %
USPS;
60 ofunc = (
void (*)())signal(SIGALRM, sleepx);
63 (
void) setitimer(ITIMER_REAL, itp, (
struct itimerval *)0);
68 #define sigmask(m) (1
<< ((m)-1
))
76 sigpause( ~sigmask(SIGALRM));
77 signal(SIGALRM,
ofunc);
void set_timer(unsigned n)