blob: 424d916ada5f16e44767b5996dad3ef6ebdeb7a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <asm/vdso.h>
#include <syscall.h>
#include <time.h>
extern void __libc_init_vdso(void);
void *__libc_force_vdso_init = (void *)__libc_init_vdso;
int clock_gettime(clockid_t clock_id, struct timespec *tp)
{
#if defined(__VDSO_CLOCK_GETTIME)
if (__vdso_clock_gettime)
return __vdso_clock_gettime(clock_id, tp);
#endif
return syscall(clock_gettime, clock_id, tp);
}
|