uClibc-glue.h 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _UCLIBC_GLUE_H
  2. #define _UCLIBC_GLUE_H 1
  3. #include <features.h>
  4. #include <sys/cdefs.h>
  5. #include <bits/uClibc_page.h>
  6. #ifdef IS_IN_libpthread
  7. #include <bits/kernel-features.h>
  8. #ifndef __GLIBC_HAVE_LONG_LONG
  9. # define __GLIBC_HAVE_LONG_LONG
  10. #endif
  11. #define __getpagesize getpagesize
  12. #define __sched_get_priority_max sched_get_priority_max
  13. #define __sched_get_priority_min sched_get_priority_min
  14. #define __sched_getscheduler sched_getscheduler
  15. #define __sched_setscheduler sched_setscheduler
  16. #define __sched_getparam sched_getparam
  17. #define __getpid getpid
  18. #define __gettimeofday gettimeofday
  19. #define __poll poll
  20. #define __sysctl sysctl
  21. #define __open open
  22. #define __read read
  23. #define __close close
  24. #define __on_exit on_exit
  25. #define __clone clone
  26. extern void *__libc_stack_end;
  27. extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
  28. #endif /* IS_IN_libpthread */
  29. #ifdef __UCLIBC_HAS_XLOCALE__
  30. # define __uselocale(x) uselocale(x)
  31. #else
  32. # define __uselocale(x) ((void)0)
  33. #endif
  34. #endif