123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #include <features.h>
- #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- #include "internals.h"
- #include "sysdeps/pthread/pthread-functions.h"
- int __libc_multiple_threads attribute_hidden __attribute__((nocommon));
- int *
- __libc_pthread_init (functions)
- const struct pthread_functions *functions;
- {
- #ifdef SHARED
-
- memcpy (&__libc_pthread_functions, functions,
- sizeof (__libc_pthread_functions));
- #endif
- #if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
-
- __uselocale (LC_GLOBAL_LOCALE);
- #endif
- return &__libc_multiple_threads;
- }
|