123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- #ifdef __UCLIBC_HAS_TLS__
- #include <tls.h>
- #endif
- #include "internals.h"
- int __libc_multiple_threads attribute_hidden __attribute__((nocommon));
- strong_alias (__libc_multiple_threads, __librt_multiple_threads)
- int *
- __libc_pthread_init(const struct pthread_functions *functions)
- {
- #ifdef SHARED
-
- memcpy (&__libc_pthread_functions, functions,
- sizeof (__libc_pthread_functions));
- #endif
- #ifndef __UCLIBC_HAS_TLS__
-
- __uselocale (LC_GLOBAL_LOCALE);
- #endif
- return &__libc_multiple_threads;
- }
|