1 // SPDX-License-Identifier: GPL-2.0
3 #include "asm/unistd.h"
4 #include <linux/types.h>
5 #include <uapi/asm/unistd_32.h>
9 struct __kernel_timespec
;
10 struct __kernel_old_timeval
;
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
);
18 int __vdso_gettimeofday(struct __kernel_old_timeval
*tv
,
21 return syscall2(__NR_gettimeofday
, (long)tv
, (long)tz
);
24 int __vdso_clock_gettime(clockid_t clock
, struct old_timespec32
*ts
)
26 return syscall2(__NR_clock_gettime
, (long)clock
, (long)ts
);
29 int __vdso_clock_gettime64(clockid_t clock
, struct __kernel_timespec
*ts
)
31 return syscall2(__NR_clock_gettime64
, (long)clock
, (long)ts
);