4 timer_delete (timer_t timerid CK_ATTRIBUTE_UNUSED)
8 * If the system does not have timer_settime() but does have
9 * setitimer() use that instead of alarm().
11 struct itimerval interval;
14 * Setting values to '0' results in disabling the running timer.
16 interval.it_value.tv_sec = 0;
17 interval.it_value.tv_usec = 0;
18 interval.it_interval.tv_sec = 0;
19 interval.it_interval.tv_usec = 0;
21 return setitimer (ITIMER_REAL, &interval, NULL);
24 * There is only one timer, that used by alarm.
25 * Setting alarm(0) will not set a new alarm, and
26 * will kill the previous timer.