dl-syscalls.h 981 B

12345678910111213141516171819202122232425262728
  1. /* stub for arch-specific syscall issues/specific implementations */
  2. #ifndef _DL_SYSCALLS_H
  3. #define _DL_SYSCALLS_H
  4. #if defined(__VDSO_SUPPORT__) && !defined(UCLIBC_LDSO)
  5. #include "../dl-vdso-calls.h"
  6. static int __attribute__ ((used)) __mips_vdso_clock_gettime(clockid_t clock_id, struct timespec *tp);
  7. static int __attribute__ ((used)) __mips_vdso_clock_gettime(clockid_t clock_id, struct timespec *tp)
  8. {
  9. return __generic_vdso_clock_gettime(clock_id, tp);
  10. }
  11. static int __attribute__ ((used)) __mips_vdso_gettimeofday(struct timeval *tv, __timezone_ptr_t tz);
  12. static int __attribute__ ((used)) __mips_vdso_gettimeofday(struct timeval *tv, __timezone_ptr_t tz)
  13. {
  14. return __generic_vdso_gettimeofday(tv, tz);
  15. }
  16. #define ARCH_VDSO_GETTIMEOFDAY(tv, tz) __mips_vdso_gettimeofday(tv, tz)
  17. #define ARCH_VDSO_CLOCK_GETTIME(clock_id, tp) __mips_vdso_clock_gettime(clock_id, tp)
  18. #endif /* defined(__VDSO_SUPPORT__) && !defined(UCLIBC_LDSO) */
  19. #endif /* _DL_SYSCALLS_H */