]> Git Repo - uclibc-ng.git/blame - librt/timer_getoverr.c
buildsys: use kbuild style
[uclibc-ng.git] / librt / timer_getoverr.c
CommitLineData
50a6ac7f
EA
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
f1775381 14static __inline__ _syscall1(int, __syscall_timer_getoverrun, kernel_timer_t,
87ad91ca 15 ktimerid);
50a6ac7f
EA
16
17/* Get the timer overrun count */
18int timer_getoverrun(timer_t timerid)
19{
87ad91ca 20 struct timer *kt = (struct timer *)timerid;
50a6ac7f 21
87ad91ca
MF
22 /* Get the information from the kernel */
23 return __syscall_timer_getoverrun(kt->ktimerid);
50a6ac7f
EA
24}
25
26#endif
This page took 0.152586 seconds and 4 git commands to generate.