diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:50 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:50 +0200 |
commit | c62cef023cdcd8349369ef4e0d08290e495659be (patch) | |
tree | 5039f207754a42ced241ef75d77c6c3da689f7da /nptl/pthreadP.h | |
parent | 2cfef0b042561ec2a61cab0a1f3a85a28780985d (diff) | |
download | glibc-c62cef023cdcd8349369ef4e0d08290e495659be.tar.gz glibc-c62cef023cdcd8349369ef4e0d08290e495659be.tar.xz glibc-c62cef023cdcd8349369ef4e0d08290e495659be.zip |
nptl: Move pthread_exit into libc
The pthread_exit symbol was moved using scripts/move-symbol-to-libc.py. No new symbol version is needed because there was a forwarder. The new tests nptl/tst-pthread_exit-nothreads and nptl/tst-pthread_exit-nothreads-static exercise the scenario that pthread_exit is called without libpthread having been linked in. This is not possible for the generic code, so these tests do not live in sysdeps/pthread for now. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthreadP.h')
-rw-r--r-- | nptl/pthreadP.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h index b47c4c5be1..b99aae2bfe 100644 --- a/nptl/pthreadP.h +++ b/nptl/pthreadP.h @@ -535,6 +535,7 @@ extern int __pthread_detach (pthread_t th); extern int __pthread_cancel (pthread_t th); extern int __pthread_kill (pthread_t threadid, int signo); extern void __pthread_exit (void *value) __attribute__ ((__noreturn__)); +libc_hidden_proto (__pthread_exit) extern int __pthread_join (pthread_t threadid, void **thread_return); extern int __pthread_setcanceltype (int type, int *oldtype); extern int __pthread_enable_asynccancel (void) attribute_hidden; |