OSDN Git Service

Do not defer expansions where useless, like CSRC/OBJS/LIB_NAME/AR_LIB_NAME, defer...
[uclinux-h8/uClibc.git] / librt / timer_getoverr.c
1 /*
2  * timer-getoverr.c - get the timer overrun count.
3  */
4
5 #include <errno.h>
6 #include <time.h>
7 #include <sys/syscall.h>
8
9 #include "kernel-posix-timers.h"
10
11 #ifdef __NR_timer_getoverrun
12
13 #define __NR___syscall_timer_getoverrun __NR_timer_getoverrun
14 static inline _syscall1(int, __syscall_timer_getoverrun, kernel_timer_t, ktimerid);
15
16 /* Get the timer overrun count */
17 int timer_getoverrun(timer_t timerid)
18 {
19     struct timer *kt = (struct timer *) timerid;
20
21     /* Get the information from the kernel */
22     return __syscall_timer_getoverrun(kt->ktimerid);
23 }
24
25 #endif