1 --- a/libpthread/linuxthreads/libc-cancellation.c
2 +++ b/libpthread/linuxthreads/libc-cancellation.c
4 weak_extern (__pthread_do_exit)
7 -int __libc_multiple_threads attribute_hidden __attribute__((nocommon));
8 -strong_alias (__libc_multiple_threads, __librt_multiple_threads)
10 /* The next two functions are similar to pthread_setcanceltype() but
11 more specialized for the use in the cancelable functions like write().
12 They do not need to check parameters etc. */
13 --- a/libpthread/linuxthreads/libc_pthread_init.c
14 +++ b/libpthread/linuxthreads/libc_pthread_init.c
15 @@ -33,6 +33,9 @@ libc_hidden_proto(memcpy)
16 libc_hidden_proto(uselocale)
19 +int __libc_multiple_threads attribute_hidden __attribute__((nocommon));
20 +strong_alias (__libc_multiple_threads, __librt_multiple_threads)
23 __libc_pthread_init (functions)
24 const struct pthread_functions *functions;
25 --- a/libpthread/linuxthreads/Makefile.in
26 +++ b/libpthread/linuxthreads/Makefile.in
27 @@ -77,7 +77,7 @@ libpthread-a-y += $(libpthread_OBJ:.o=.
29 libpthread-a-y += $(libpthread_OBJ) $(libpthread-static-y)
31 -libpthread-so-y += $(libpthread_OBJ:.o=.os)
32 +libpthread-so-y += $(libpthread_OBJ:.o=.oS)
34 lib-a-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.a
35 lib-so-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.so
36 --- a/libpthread/linuxthreads/pthread.c
37 +++ b/libpthread/linuxthreads/pthread.c
40 #include <not-cancel.h>
42 +#define HAVE_Z_NODELETE
45 #if !defined __SIGRTMIN || (__SIGRTMAX - __SIGRTMIN) < 3
46 # error "This must not happen"
47 @@ -976,7 +978,9 @@ static void pthread_onexit_process(int r
48 request.req_args.exit.code = retcode;
49 TEMP_FAILURE_RETRY(write_not_cancel(__pthread_manager_request,
50 (char *) &request, sizeof(request)));
54 /* Main thread should accumulate times for thread manager and its
55 children, so that timings for main thread account for all threads. */
56 if (self == __pthread_main_thread)