summaryrefslogtreecommitdiff
path: root/setjmp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-03-10 09:27:04 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-03-10 09:27:20 -0800
commit6253bacdc00de132dec452ff7c6ce3ba7fa23d81 (patch)
tree30b25d5aa1c776b157606e5389fcc566e16fd9f0 /setjmp
parentmalloc: Revert sense of prev_inuse in comments (diff)
downloadglibc-6253bacdc00de132dec452ff7c6ce3ba7fa23d81.tar.gz
glibc-6253bacdc00de132dec452ff7c6ce3ba7fa23d81.tar.bz2
glibc-6253bacdc00de132dec452ff7c6ce3ba7fa23d81.zip
Remove hidden __libc_longjmp
Since __libc_longjmp is a private interface for cancellation implementation in libpthread, there is no need to provide hidden __libc_longjmp in libc. Tested with build-many-glibcs.py. * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto. * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def. * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp): Likewise.
Diffstat (limited to 'setjmp')
-rw-r--r--setjmp/longjmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/setjmp/longjmp.c b/setjmp/longjmp.c
index 6b4737605a..a2a7065a85 100644
--- a/setjmp/longjmp.c
+++ b/setjmp/longjmp.c
@@ -40,8 +40,9 @@ __libc_siglongjmp (sigjmp_buf env, int val)
}
#ifndef __libc_siglongjmp
+/* __libc_longjmp is a private interface for cancellation implementation
+ in libpthread. */
strong_alias (__libc_siglongjmp, __libc_longjmp)
-libc_hidden_def (__libc_longjmp)
weak_alias (__libc_siglongjmp, _longjmp)
weak_alias (__libc_siglongjmp, longjmp)
weak_alias (__libc_siglongjmp, siglongjmp)