12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- #ifdef USE_TLS
- #include <tls.h>
- #endif
- #include "internals.h"
- #ifdef SHARED
- #endif
- #if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
- #endif
- 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)
-
- __uselocale (LC_GLOBAL_LOCALE);
- #endif
- return &__libc_multiple_threads;
- }
|