mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
nptl: Move pthread_key_create, __pthread_key_create into libc
The symbols have been moved using scripts/move-symbol-to-libc.py.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002-2021 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
#include <atomic.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
__pthread_key_create (pthread_key_t *key, void (*destr) (void *))
|
||||
___pthread_key_create (pthread_key_t *key, void (*destr) (void *))
|
||||
{
|
||||
/* Find a slot in __pthread_keys which is unused. */
|
||||
for (size_t cnt = 0; cnt < PTHREAD_KEYS_MAX; ++cnt)
|
||||
@@ -47,5 +47,15 @@ __pthread_key_create (pthread_key_t *key, void (*destr) (void *))
|
||||
|
||||
return EAGAIN;
|
||||
}
|
||||
weak_alias (__pthread_key_create, pthread_key_create)
|
||||
hidden_def (__pthread_key_create)
|
||||
versioned_symbol (libc, ___pthread_key_create, __pthread_key_create,
|
||||
GLIBC_2_34);
|
||||
libc_hidden_ver (___pthread_key_create, __pthread_key_create)
|
||||
|
||||
versioned_symbol (libc, ___pthread_key_create, pthread_key_create,
|
||||
GLIBC_2_34);
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
|
||||
compat_symbol (libpthread, ___pthread_key_create, __pthread_key_create,
|
||||
GLIBC_2_0);
|
||||
compat_symbol (libpthread, ___pthread_key_create, pthread_key_create,
|
||||
GLIBC_2_0);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user