Searched refs:itimer (Results 1 – 8 of 8) sorted by relevance
/freebsd/usr.bin/talk/ |
H A D | msgs.c | 58 struct itimerval itimer; in start_msgs() local 62 itimer.it_value.tv_sec = itimer.it_interval.tv_sec = MSG_INTERVAL; in start_msgs() 63 itimer.it_value.tv_usec = itimer.it_interval.tv_usec = 0; in start_msgs() 64 setitimer(ITIMER_REAL, &itimer, (struct itimerval *)0); in start_msgs() 70 struct itimerval itimer; in end_msgs() local 72 timerclear(&itimer.it_value); in end_msgs() 73 timerclear(&itimer.it_interval); in end_msgs() 74 setitimer(ITIMER_REAL, &itimer, (struct itimerval *)0); in end_msgs()
|
H A D | invite.c | 66 struct itimerval itimer; in invite_remote() local 69 itimer.it_value.tv_sec = RING_WAIT; in invite_remote() 70 itimer.it_value.tv_usec = 0; in invite_remote() 71 itimer.it_interval = itimer.it_value; in invite_remote() 85 setitimer(ITIMER_REAL, &itimer, (struct itimerval *)0); in invite_remote()
|
/freebsd/usr.sbin/ppp/ |
H A D | timer.c | 79 struct itimerval itimer; in timer_Start() local 101 if (TimerList && getitimer(ITIMER_REAL, &itimer) == 0) in timer_Start() 102 ticks = RESTVAL(itimer) - TimerList->rest; in timer_Start() 138 struct itimerval itimer; in StopTimerNoBlock() local 163 if (!pt && getitimer(ITIMER_REAL, &itimer) == 0) in StopTimerNoBlock() 164 t->next->rest += RESTVAL(itimer); /* t (tp) was the first in the list */ in StopTimerNoBlock() 237 struct itimerval itimer; in timer_Show() local 248 if (TimerList && getitimer(ITIMER_REAL, &itimer) == 0) in timer_Show() 249 rest = RESTVAL(itimer) - TimerList->rest; in timer_Show() 278 struct itimerval itimer; in timer_InitService() local [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_timer.c | 124 intervaltimer itimer; variable 144 rc = timer_settime(timer_id, 0, &itimer, NULL); in set_timer_or_die() 147 rc = setitimer(ITIMER_REAL, &itimer, NULL); in set_timer_or_die() 165 ZERO(itimer); in reinit_timer() 167 timer_gettime(timer_id, &itimer); in reinit_timer() 169 getitimer(ITIMER_REAL, &itimer); in reinit_timer() 171 if (itimer.it_value.tv_sec < 0 || in reinit_timer() 172 itimer.it_value.tv_sec > (1 << EVENT_TIMEOUT)) in reinit_timer() 173 itimer.it_value.tv_sec = (1 << EVENT_TIMEOUT); in reinit_timer() 174 if (itimer in reinit_timer() [all...] |
/freebsd/sys/sys/ |
H A D | timers.h | 47 struct itimer { struct 71 struct itimer *its_timers[TIMER_MAX]; argument 75 int (*timer_create)(struct itimer *timer); 76 int (*timer_settime)(struct itimer * timer, int flags, 79 int (*timer_delete)(struct itimer * timer); 80 int (*timer_gettime)(struct itimer * timer,
|
/freebsd/sys/kern/ |
H A D | kern_time.c | 95 static void itimer_enter(struct itimer *); 96 static void itimer_leave(struct itimer *); 97 static struct itimer *itimer_find(struct proc *, int); 99 static int realtimer_create(struct itimer *); 100 static int realtimer_gettime(struct itimer *, struct itimerspec *); 101 static int realtimer_settime(struct itimer *, int, 103 static int realtimer_delete(struct itimer *); 106 static void realtimer_expire_l(struct itimer *it, bool proc_locked); 111 static void itimer_fire(struct itimer *it); 896 struct itimer *i in itimer_proc_continue() [all...] |
/freebsd/usr.sbin/mld6query/ |
H A D | mld6.c | 97 struct itimerval itimer; in main() local 175 itimer.it_value.tv_sec = QUERY_RESPONSE_INTERVAL / 1000; in main() 176 itimer.it_interval.tv_sec = 0; in main() 177 itimer.it_interval.tv_usec = 0; in main() 178 itimer.it_value.tv_usec = 0; in main() 181 (void)setitimer(ITIMER_REAL, &itimer, NULL); in main()
|
/freebsd/contrib/mandoc/ |
H A D | cgi.c | 1061 struct itimerval itimer; in main() local 1084 itimer.it_value.tv_sec = 2; in main() 1085 itimer.it_value.tv_usec = 0; in main() 1086 itimer.it_interval.tv_sec = 2; in main() 1087 itimer.it_interval.tv_usec = 0; in main() 1088 if (setitimer(ITIMER_VIRTUAL, &itimer, NULL) == -1) { in main()
|