1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #include <linux/time.h>
4 #include <linux/types.h>
5 
6 extern
7 int __vdso_clock_gettime(clockid_t clock,
8 			 struct old_timespec32 *ts);
9 int __vdso_clock_gettime(clockid_t clock,
10 			 struct old_timespec32 *ts)
11 {
12 	return __cvdso_clock_gettime32(clock, ts);
13 }
14 
15 int __vdso_clock_gettime64(clockid_t clock,
16 			   struct __kernel_timespec *ts);
17 int __vdso_clock_gettime64(clockid_t clock,
18 			   struct __kernel_timespec *ts)
19 {
20 	return __cvdso_clock_gettime(clock, ts);
21 }
22 
23 extern
24 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
25 			struct timezone *tz);
26 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
27 			struct timezone *tz)
28 {
29 	return __cvdso_gettimeofday(tv, tz);
30 }
31 
32 extern
33 int __vdso_clock_getres(clockid_t clock_id,
34 			struct old_timespec32 *res);
35 int __vdso_clock_getres(clockid_t clock_id,
36 			struct old_timespec32 *res)
37 {
38 	return __cvdso_clock_getres_time32(clock_id, res);
39 }
40