diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-03-16 18:05:38 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-03-18 22:20:54 +0100 |
commit | 2f5be6db29c87967e2b443d0c4757ff8132d56d5 (patch) | |
tree | df63beae36158efafa398ab656f6d94e4c1ce995 /sysdeps/unix/sysv | |
parent | 8d87e640a5a99fc337d1ee82a3039697d60ca3fa (diff) | |
download | glibc-2f5be6db29c87967e2b443d0c4757ff8132d56d5.tar.gz |
nptl: Move __pthread_cleanup_upto into libc
This internal symbol is used as part of the longjmp implementation.
Rename the file from nptl/pt-cleanup.c to nptl/pthread_cleanup_upto.c
so that the pt-* files remain restricted to libpthread.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/jmp-unwind.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/jmp-unwind.c b/sysdeps/unix/sysv/linux/s390/jmp-unwind.c index 2bdde57ec7..8e0399a3e9 100644 --- a/sysdeps/unix/sysv/linux/s390/jmp-unwind.c +++ b/sysdeps/unix/sysv/linux/s390/jmp-unwind.c @@ -19,15 +19,12 @@ #include <setjmp.h> #include <stddef.h> #include <libc-lock.h> - -extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe); -#pragma weak __pthread_cleanup_upto - +#include <nptl/pthreadP.h> void _longjmp_unwind (jmp_buf env, int val) { char local_var; - __libc_ptf_call (__pthread_cleanup_upto, (env->__jmpbuf, &local_var), 0); + __pthread_cleanup_upto (env->__jmpbuf, &local_var); } |