diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-03 09:10:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-03 09:18:38 +0200 |
commit | dbfa12e201529d7006477d192a6f340e696744a1 (patch) | |
tree | c2396e15b5e963ba2f4dc9dbc59b80dc7d3c74ab /nptl | |
parent | 0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0 (diff) | |
download | glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.gz glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.bz2 glibc-dbfa12e201529d7006477d192a6f340e696744a1.zip |
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>
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 2 | ||||
-rw-r--r-- | nptl/Versions | 3 | ||||
-rw-r--r-- | nptl/pthread_rwlockattr_init.c | 11 |
3 files changed, 12 insertions, 4 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 7724bed844..d6920dfb25 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -134,6 +134,7 @@ routines = \ pthread_rwlockattr_destroy \ pthread_rwlockattr_getkind_np \ pthread_rwlockattr_getpshared \ + pthread_rwlockattr_init \ pthread_self \ pthread_setcancelstate \ pthread_setcanceltype \ @@ -189,7 +190,6 @@ libpthread-routines = \ pthread_getname \ pthread_join \ pthread_join_common \ - pthread_rwlockattr_init \ pthread_rwlockattr_setkind_np \ pthread_rwlockattr_setpshared \ pthread_setaffinity \ diff --git a/nptl/Versions b/nptl/Versions index 1ca7c7782e..bc0a9c826a 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -76,6 +76,7 @@ libc { pthread_rwlockattr_destroy; pthread_rwlockattr_getkind_np; pthread_rwlockattr_getpshared; + pthread_rwlockattr_init; } GLIBC_2.2 { __pthread_rwlock_destroy; @@ -232,6 +233,7 @@ libc { pthread_rwlockattr_destroy; pthread_rwlockattr_getkind_np; pthread_rwlockattr_getpshared; + pthread_rwlockattr_init; pthread_setspecific; pthread_spin_destroy; pthread_spin_init; @@ -318,7 +320,6 @@ libpthread { pthread_attr_setstacksize; pthread_create; pthread_getconcurrency; - pthread_rwlockattr_init; pthread_rwlockattr_setkind_np; pthread_rwlockattr_setpshared; pthread_setconcurrency; diff --git a/nptl/pthread_rwlockattr_init.c b/nptl/pthread_rwlockattr_init.c index 0df2ddbcd2..3949a0698d 100644 --- a/nptl/pthread_rwlockattr_init.c +++ b/nptl/pthread_rwlockattr_init.c @@ -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 |