vgettimeofday.c 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * ARM64 compat userspace implementations of gettimeofday() and similar.
  4. *
  5. * Copyright (C) 2018 ARM Limited
  6. *
  7. */
  8. int __vdso_clock_gettime(clockid_t clock,
  9. struct old_timespec32 *ts)
  10. {
  11. return __cvdso_clock_gettime32(clock, ts);
  12. }
  13. int __vdso_clock_gettime64(clockid_t clock,
  14. struct __kernel_timespec *ts)
  15. {
  16. return __cvdso_clock_gettime(clock, ts);
  17. }
  18. int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
  19. struct timezone *tz)
  20. {
  21. return __cvdso_gettimeofday(tv, tz);
  22. }
  23. int __vdso_clock_getres(clockid_t clock_id,
  24. struct old_timespec32 *res)
  25. {
  26. return __cvdso_clock_getres_time32(clock_id, res);
  27. }
  28. /* Avoid unresolved references emitted by GCC */
  29. void __aeabi_unwind_cpp_pr0(void)
  30. {
  31. }
  32. void __aeabi_unwind_cpp_pr1(void)
  33. {
  34. }
  35. void __aeabi_unwind_cpp_pr2(void)
  36. {
  37. }