diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-11 11:08:00 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-11 11:10:03 +0200 |
commit | 249bd833a08e2689e28ff9a094730f0b048a8442 (patch) | |
tree | 2106800f8ef1cfc6bfb73e7391400b7cb2b06ae2 /nptl/pthread_setattr_default_np.c | |
parent | d2af73a348c4a230792d190c774a431fe5c31515 (diff) | |
download | glibc-249bd833a08e2689e28ff9a094730f0b048a8442.tar glibc-249bd833a08e2689e28ff9a094730f0b048a8442.tar.gz glibc-249bd833a08e2689e28ff9a094730f0b048a8442.tar.bz2 glibc-249bd833a08e2689e28ff9a094730f0b048a8442.zip |
nptl: Move pthread_setattr_default_np into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
The export of __default_pthread_attr_freeres is temporary. There
is a minor regression in freeres coverage because in the dynamic case,
__default_pthread_attr_freeres is no longer called if libpthread is
not linked in.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_setattr_default_np.c')
-rw-r--r-- | nptl/pthread_setattr_default_np.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nptl/pthread_setattr_default_np.c b/nptl/pthread_setattr_default_np.c index fcf1873d2f..bfdb93bc6e 100644 --- a/nptl/pthread_setattr_default_np.c +++ b/nptl/pthread_setattr_default_np.c @@ -20,10 +20,10 @@ #include <stdlib.h> #include <pthreadP.h> #include <string.h> - +#include <shlib-compat.h> int -pthread_setattr_default_np (const pthread_attr_t *in) +__pthread_setattr_default_np (const pthread_attr_t *in) { const struct pthread_attr *real_in; int ret; @@ -81,6 +81,12 @@ pthread_setattr_default_np (const pthread_attr_t *in) lll_unlock (__default_pthread_attr_lock, LLL_PRIVATE); return ret; } +versioned_symbol (libc, __pthread_setattr_default_np, + pthread_setattr_default_np, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_18, GLIBC_2_34) +compat_symbol (libc, __pthread_setattr_default_np, + pthread_setattr_default_np, GLIBC_2_18); +#endif /* This is placed in the same file as pthread_setattr_default_np because only this function can trigger allocation of attribute |