/* COVERAGE: timer_create timer_gettime timer_settime timer_getoverrun timer_delete */ #include #include #include #include #include #include #include int main() { timer_t tid=0; struct itimerspec val, oval; syscall(SYS_timer_create, CLOCK_REALTIME, NULL, &tid); // timer_create (CLOCK_REALTIME, 0x[0]+, XXXX) syscall(SYS_timer_gettime, tid, &val); // timer_gettime (NNNN, XXXX) syscall(SYS_timer_settime, 0, tid, &val, &oval); // timer_settime (0, NNNN, \[0.000000,0.000000\], XXXX) syscall(SYS_timer_getoverrun, tid); // timer_getoverrun (NNNN) syscall(SYS_timer_delete, tid); // timer_delete (NNNN) return 0; }