dl-syscalls.h 1019 B

1234567891011121314151617181920212223242526272829
  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)) __x86_vdso_clock_gettime(clockid_t clock_id, struct timespec *tp);
  7. static int __attribute__ ((used)) __x86_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)) __x86_vdso_gettimeofday(struct timeval *tv, __timezone_ptr_t tz);
  12. static int __attribute__ ((used)) __x86_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) __x86_vdso_gettimeofday(tv, tz)
  17. #define ARCH_VDSO_CLOCK_GETTIME(clock_id, tp) __x86_vdso_clock_gettime(clock_id, tp)
  18. #endif /* defined(__VDSO_SUPPORT__) && !defined(UCLIBC_LDSO) */
  19. #endif /* _DL_SYSCALLS_H */
  20. /* stub for arch-specific syscall issues */