vgettimeofday.c 596 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. #include <linux/time.h>
  3. #include <linux/types.h>
  4. int __vdso_clock_gettime(clockid_t clock,
  5. struct old_timespec32 *ts)
  6. {
  7. return __cvdso_clock_gettime32(clock, ts);
  8. }
  9. int __vdso_clock_gettime64(clockid_t clock,
  10. struct __kernel_timespec *ts)
  11. {
  12. return __cvdso_clock_gettime(clock, ts);
  13. }
  14. int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
  15. struct timezone *tz)
  16. {
  17. return __cvdso_gettimeofday(tv, tz);
  18. }
  19. int __vdso_clock_getres(clockid_t clock_id,
  20. struct old_timespec32 *res)
  21. {
  22. return __cvdso_clock_getres_time32(clock_id, res);
  23. }