1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

nptl: Move pthread_rwlockattr_init into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-05-03 09:10:57 +02:00
parent 0af0ccc2d5
commit dbfa12e201
64 changed files with 76 additions and 33 deletions

View File

@ -17,10 +17,10 @@
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
#include <shlib-compat.h>
int
pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
__pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
{
ASSERT_TYPE_SIZE (pthread_rwlockattr_t, __SIZEOF_PTHREAD_RWLOCKATTR_T);
ASSERT_PTHREAD_INTERNAL_SIZE (pthread_rwlockattr_t,
@ -35,3 +35,10 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
return 0;
}
versioned_symbol (libc, __pthread_rwlockattr_init,
pthread_rwlockattr_init, GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
compat_symbol (libpthread, __pthread_rwlockattr_init,
pthread_rwlockattr_init, GLIBC_2_1);
#endif