diff options
Diffstat (limited to 'htl/pt-join.c')
-rw-r--r-- | htl/pt-join.c | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/htl/pt-join.c b/htl/pt-join.c index 4e4798a..7a8da01 100644 --- a/htl/pt-join.c +++ b/htl/pt-join.c @@ -21,6 +21,8 @@ #include <stddef.h> #include <pt-internal.h> +#include <shlib-compat.h> +#include <ldsodefs.h> /* Make calling thread wait for termination of thread THREAD. Return the exit status of the thread in *STATUS. */ @@ -96,14 +98,24 @@ __pthread_join (pthread_t thread, void **status) { return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, NULL); } -weak_alias (__pthread_join, pthread_join); +libc_hidden_def (__pthread_join) +versioned_symbol (libc, __pthread_join, pthread_join, GLIBC_2_43); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43) +compat_symbol (libc, __pthread_join, pthread_join, GLIBC_2_12); +#endif int __pthread_tryjoin_np (pthread_t thread, void **status) { return __pthread_join_common (thread, status, 1, CLOCK_REALTIME, NULL); } -weak_alias (__pthread_tryjoin_np, pthread_tryjoin_np); +libc_hidden_def (__pthread_tryjoin_np) +versioned_symbol (libc, __pthread_tryjoin_np, pthread_tryjoin_np, GLIBC_2_43); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_32, GLIBC_2_43) +compat_symbol (libc, __pthread_tryjoin_np, pthread_tryjoin_np, GLIBC_2_32); +#endif int __pthread_timedjoin_np (pthread_t thread, void **status, @@ -111,7 +123,12 @@ __pthread_timedjoin_np (pthread_t thread, void **status, { return __pthread_join_common (thread, status, 0, CLOCK_REALTIME, abstime); } -weak_alias (__pthread_timedjoin_np, pthread_timedjoin_np); +libc_hidden_def (__pthread_timedjoin_np) +versioned_symbol (libc, __pthread_timedjoin_np, pthread_timedjoin_np, GLIBC_2_43); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_32, GLIBC_2_43) +compat_symbol (libc, __pthread_timedjoin_np, pthread_timedjoin_np, GLIBC_2_32); +#endif int __pthread_clockjoin_np (pthread_t thread, void **status, @@ -120,4 +137,9 @@ __pthread_clockjoin_np (pthread_t thread, void **status, { return __pthread_join_common (thread, status, 0, clockid, abstime); } -weak_alias (__pthread_clockjoin_np, pthread_clockjoin_np); +libc_hidden_def (__pthread_clockjoin_np) +versioned_symbol (libc, __pthread_clockjoin_np, pthread_clockjoin_np, GLIBC_2_43); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_32, GLIBC_2_43) +compat_symbol (libc, __pthread_clockjoin_np, pthread_clockjoin_np, GLIBC_2_32); +#endif |