diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 10:55:07 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 10:55:07 +0200 |
commit | ed00dcbbd695fedfc60591da24b3555db03b3dd9 (patch) | |
tree | 290f20ebf5ae38c197ef30f3c13e28e7cd8d1bb9 /nptl/pthread_condattr_getclock.c | |
parent | b76c066d092d78124deeba9b687f5b10924e97de (diff) | |
download | glibc-ed00dcbbd695fedfc60591da24b3555db03b3dd9.tar.gz glibc-ed00dcbbd695fedfc60591da24b3555db03b3dd9.tar.xz glibc-ed00dcbbd695fedfc60591da24b3555db03b3dd9.zip |
nptl: Move pthread_condattr_getclock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_condattr_getclock.c')
-rw-r--r-- | nptl/pthread_condattr_getclock.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_getclock.c b/nptl/pthread_condattr_getclock.c index 64a92a14cb..ad5655dbce 100644 --- a/nptl/pthread_condattr_getclock.c +++ b/nptl/pthread_condattr_getclock.c @@ -17,12 +17,20 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t *clock_id) +__pthread_condattr_getclock (const pthread_condattr_t *attr, + clockid_t *clock_id) { *clock_id = (((((const struct pthread_condattr *) attr)->value) >> 1) & ((1 << COND_CLOCK_BITS) - 1)); return 0; } +versioned_symbol (libc, __pthread_condattr_getclock, + pthread_condattr_getclock, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34) +compat_symbol (libpthread, __pthread_condattr_getclock, + pthread_condattr_getclock, GLIBC_2_3_3); +#endif |