12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include <locale.h>
- #include <stdlib.h>
- #include <string.h>
- #ifdef USE_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 (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;
- }
|