diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:46:15 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:51:19 +0200 |
commit | 2a23e899e255f9ce2b4024d4ec029ce57af518bd (patch) | |
tree | 67a857a38112bc5e05b9a6577ccfebe0857b5ded /nptl/pthread_mutexattr_gettype.c | |
parent | 9b7ab14e112476c96e7b20fb23e6838b7012dfda (diff) | |
download | glibc-2a23e899e255f9ce2b4024d4ec029ce57af518bd.tar glibc-2a23e899e255f9ce2b4024d4ec029ce57af518bd.tar.gz glibc-2a23e899e255f9ce2b4024d4ec029ce57af518bd.tar.bz2 glibc-2a23e899e255f9ce2b4024d4ec029ce57af518bd.zip |
nptl: Move pthread_mutexattr_gettype into libc
And pthread_mutexattr_getkind_np as a compatibility symbol.
(There is no declaration in <pthread.h>, so there is no need
to add an alias or a deprecation warning there.)
The symbols were moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_gettype.c')
-rw-r--r-- | nptl/pthread_mutexattr_gettype.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/nptl/pthread_mutexattr_gettype.c b/nptl/pthread_mutexattr_gettype.c index 06234d4195..e091087213 100644 --- a/nptl/pthread_mutexattr_gettype.c +++ b/nptl/pthread_mutexattr_gettype.c @@ -17,10 +17,10 @@ <https://www.gnu.org/licenses/>. */ #include <pthreadP.h> - +#include <shlib-compat.h> int -pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int *kind) +__pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int *kind) { const struct pthread_mutexattr *iattr; @@ -31,4 +31,15 @@ pthread_mutexattr_gettype (const pthread_mutexattr_t *attr, int *kind) return 0; } -weak_alias (pthread_mutexattr_gettype, pthread_mutexattr_getkind_np) +versioned_symbol (libc, __pthread_mutexattr_gettype, + pthread_mutexattr_gettype, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_gettype, + pthread_mutexattr_getkind_np, GLIBC_2_0); +#endif + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_gettype, + pthread_mutexattr_gettype, GLIBC_2_1); +#endif |