uClibc-glue.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 "kernel-features.h"
  8. #ifndef _GNU_SOURCE
  9. # define _GNU_SOURCE
  10. #endif
  11. #ifndef __GLIBC_HAVE_LONG_LONG
  12. # define __GLIBC_HAVE_LONG_LONG
  13. #endif
  14. #ifndef __UCLIBC_HAS_XLOCALE__
  15. # define __uselocale(x)
  16. #endif
  17. #define __getpagesize getpagesize
  18. #define __sched_get_priority_max sched_get_priority_max
  19. #define __sched_get_priority_min sched_get_priority_min
  20. #define __sched_getscheduler sched_getscheduler
  21. #define __sched_setscheduler sched_setscheduler
  22. #define __sched_getparam sched_getparam
  23. #define __getpid getpid
  24. #define __gettimeofday gettimeofday
  25. #define __poll poll
  26. #define __sysctl sysctl
  27. #define __open open
  28. #define __read read
  29. #define __close close
  30. #define __on_exit on_exit
  31. #define __libc_current_sigrtmin_private __libc_current_sigrtmin
  32. extern void *__libc_stack_end;
  33. extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
  34. #endif /* IS_IN_libpthread */
  35. /* Use a funky version in a probably vein attempt at preventing gdb
  36. * from dlopen()'ing glibc's libthread_db library... */
  37. #define STRINGIFY(s) STRINGIFY2 (s)
  38. #define STRINGIFY2(s) #s
  39. #define VERSION STRINGIFY(__UCLIBC_MAJOR__) "." STRINGIFY(__UCLIBC_MINOR__) "." STRINGIFY(__UCLIBC_SUBLEVEL__)
  40. #endif