dl-syscalls.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* stub for arch-specific syscall issues/specific implementations */
  2. #ifndef _DL_SYSCALLS_H
  3. #define _DL_SYSCALLS_H
  4. #ifdef __ARCH_VDSO_GETTIMEOFDAY_NAME
  5. #undef __ARCH_VDSO_GETTIMEOFDAY_NAME
  6. #endif
  7. #ifdef __ARCH_VDSO_CLOCK_GETTIME_NAME
  8. #undef __ARCH_VDSO_CLOCK_GETTIME_NAME
  9. #endif
  10. #define __ARCH_VDSO_GETTIMEOFDAY_NAME "__kernel_gettimeofday"
  11. #define __ARCH_VDSO_CLOCK_GETTIME_NAME "__kernel_clock_gettime"
  12. #if defined(__VDSO_SUPPORT__) && !defined(UCLIBC_LDSO)
  13. #include "../dl-vdso-calls.h"
  14. static int __attribute__ ((used)) __aarch64_vdso_clock_gettime(clockid_t clock_id, struct timespec *tp);
  15. static int __attribute__ ((used)) __aarch64_vdso_clock_gettime(clockid_t clock_id, struct timespec *tp)
  16. {
  17. return __generic_vdso_clock_gettime(clock_id, tp);
  18. }
  19. static int __attribute__ ((used)) __aarch64_vdso_gettimeofday(struct timeval *tv, __timezone_ptr_t tz);
  20. static int __attribute__ ((used)) __aarch64_vdso_gettimeofday(struct timeval *tv, __timezone_ptr_t tz)
  21. {
  22. return __generic_vdso_gettimeofday(tv, tz);
  23. }
  24. #define ARCH_VDSO_GETTIMEOFDAY(tv, tz) __aarch64_vdso_gettimeofday(tv, tz)
  25. #define ARCH_VDSO_CLOCK_GETTIME(clock_id, tp) __aarch64_vdso_clock_gettime(clock_id, tp)
  26. #endif /* defined(__VDSO_SUPPORT__) && !defined(UCLIBC_LDSO) */
  27. #endif /* _DL_SYSCALLS_H */