mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
nptl: Move pthread_detach, thrd_detach into libc
The symbols were moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
#include <atomic.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
__pthread_detach (pthread_t th)
|
||||
___pthread_detach (pthread_t th)
|
||||
{
|
||||
struct pthread *pd = (struct pthread *) th;
|
||||
|
||||
@@ -53,4 +53,12 @@ __pthread_detach (pthread_t th)
|
||||
|
||||
return result;
|
||||
}
|
||||
weak_alias (__pthread_detach, pthread_detach)
|
||||
versioned_symbol (libc, ___pthread_detach, pthread_detach, GLIBC_2_34);
|
||||
libc_hidden_ver (___pthread_detach, __pthread_detach)
|
||||
#ifndef SHARED
|
||||
strong_alias (___pthread_detach, __pthread_detach)
|
||||
#endif
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
|
||||
compat_symbol (libc, ___pthread_detach, pthread_detach, GLIBC_2_0);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user