diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-21 22:35:00 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-21 22:35:00 +0200 |
commit | f47f1d91af985a9028fb399da21eab460d887a15 (patch) | |
tree | 717700afaec7558cfcd4b51de8aaddbd564c632e /include | |
parent | 7862ff8e699ca8f605b832c6e529f5b10e678edd (diff) | |
download | glibc-f47f1d91af985a9028fb399da21eab460d887a15.zip glibc-f47f1d91af985a9028fb399da21eab460d887a15.tar.gz glibc-f47f1d91af985a9028fb399da21eab460d887a15.tar.bz2 |
nptl: Move pthread_create, thrd_create into libc
The symbols were moved using scripts/move-symbol-to-libc.py.
The libpthread placeholder symbols need some changes because some
symbol versions have gone away completely. But
__errno_location@@GLIBC_2.0 still exists, so the GLIBC_2.0 version
is still there.
The internal __pthread_create symbol now points to the correct
function, so the sysdeps/nptl/thrd_create.c override is no longer
necessary.
There was an issue how the hidden alias of pthread_getattr_default_np
was defined, so this commit cleans up that aspects and removes the
GLIBC_PRIVATE export altogether.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h index 5b18c7c..749dfb9 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -38,7 +38,11 @@ extern void __libc_freeres (void); libc_hidden_proto (__libc_freeres) /* Free resources stored in thread-local variables on thread exit. */ -extern void __libc_thread_freeres (void); +extern void __libc_thread_freeres (void) +#if PTHREAD_IN_LIBC + attribute_hidden +#endif + ; /* Define and initialize `__progname' et. al. */ extern void __init_misc (int, char **, char **) attribute_hidden; |