yuezonghe | 824eb0c | 2024-06-27 02:32:26 -0700 | [diff] [blame^] | 1 | #ifndef _UCLIBC_GLUE_H |
| 2 | #define _UCLIBC_GLUE_H 1 |
| 3 | |
| 4 | #include <features.h> |
| 5 | #include <sys/cdefs.h> |
| 6 | #include <bits/uClibc_page.h> |
| 7 | |
| 8 | #ifdef IS_IN_libpthread |
| 9 | #include <bits/kernel-features.h> |
| 10 | |
| 11 | #ifndef __GLIBC_HAVE_LONG_LONG |
| 12 | # define __GLIBC_HAVE_LONG_LONG |
| 13 | #endif |
| 14 | |
| 15 | #define __getpagesize getpagesize |
| 16 | #define __sched_get_priority_max sched_get_priority_max |
| 17 | #define __sched_get_priority_min sched_get_priority_min |
| 18 | #define __sched_getscheduler sched_getscheduler |
| 19 | #define __sched_setscheduler sched_setscheduler |
| 20 | #define __sched_getparam sched_getparam |
| 21 | #define __getpid getpid |
| 22 | #define __gettimeofday gettimeofday |
| 23 | #define __poll poll |
| 24 | #define __sysctl sysctl |
| 25 | #define __open open |
| 26 | #define __read read |
| 27 | #define __close close |
| 28 | #define __on_exit on_exit |
| 29 | #define __libc_current_sigrtmin_private __libc_current_sigrtmin |
| 30 | #define __clone clone |
| 31 | |
| 32 | extern void *__libc_stack_end; |
| 33 | extern int __cxa_atexit (void (*func) (void *), void *arg, void *d); |
| 34 | |
| 35 | #endif /* IS_IN_libpthread */ |
| 36 | |
| 37 | #ifdef __UCLIBC_HAS_XLOCALE__ |
| 38 | # define __uselocale(x) uselocale(x) |
| 39 | #else |
| 40 | # define __uselocale(x) ((void)0) |
| 41 | #endif |
| 42 | |
| 43 | /* Use a funky version in a probably vein attempt at preventing gdb |
| 44 | * from dlopen()'ing glibc's libthread_db library... */ |
| 45 | #define VERSION __stringify(__UCLIBC_MAJOR__) "." __stringify(__UCLIBC_MINOR__) "." __stringify(__UCLIBC_SUBLEVEL__) |
| 46 | |
| 47 | #endif |