uClibc-glue.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 __libc_current_sigrtmin_private __libc_current_sigrtmin
  26. #define __clone clone
  27. extern void *__libc_stack_end;
  28. extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
  29. #endif /* IS_IN_libpthread */
  30. #ifdef __UCLIBC_HAS_XLOCALE__
  31. # define __uselocale(x) uselocale(x)
  32. #else
  33. # define __uselocale(x) ((void)0)
  34. #endif
  35. /* Use a funky version in a probably vein attempt at preventing gdb
  36. * from dlopen()'ing glibc's libthread_db library... */
  37. #define VERSION __stringify(__UCLIBC_MAJOR__) "." __stringify(__UCLIBC_MINOR__) "." __stringify(__UCLIBC_SUBLEVEL__)
  38. #endif