| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
#include "asm/unistd.h" |
| 4 |
#include <linux/types.h> |
| 5 |
#include <uapi/asm/unistd_32.h> |
| 6 |
|
| 7 |
struct timezone; |
| 8 |
struct old_timespec32; |
| 9 |
struct __kernel_timespec; |
| 10 |
struct __kernel_old_timeval; |
| 11 |
|
| 12 |
/* forward declarations */ |
| 13 |
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); |
| 14 |
int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts); |
| 15 |
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts); |
| 16 |
|
| 17 |
|
| 18 |
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, |
| 19 |
struct timezone *tz) |
| 20 |
{ |
| 21 |
return syscall2(__NR_gettimeofday, (long)tv, (long)tz); |
| 22 |
} |
| 23 |
|
| 24 |
int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) |
| 25 |
{ |
| 26 |
return syscall2(__NR_clock_gettime, (long)clock, (long)ts); |
| 27 |
} |
| 28 |
|
| 29 |
int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts) |
| 30 |
{ |
| 31 |
return syscall2(__NR_clock_gettime64, (long)clock, (long)ts); |
| 32 |
} |