aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-26 22:53:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 02:03:18 +0100
commit25699c4c3ab7617fc3506ee0a6123881c78812ea (patch)
tree2071e4fd16615aac65ac0078af36c9b7b3f60188 /sysdeps
parentf1b50413543205ddc246a09819b6ff47a714d763 (diff)
downloadglibc-25699c4c3ab7617fc3506ee0a6123881c78812ea.zip
glibc-25699c4c3ab7617fc3506ee0a6123881c78812ea.tar.gz
glibc-25699c4c3ab7617fc3506ee0a6123881c78812ea.tar.bz2
htl: move pthread_condattr_getpshared into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241126205329.2215295-5-gfleury@disroot.org>
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/htl/pt-condattr-getpshared.c8
-rw-r--r--sysdeps/mach/hurd/i386/libc.abilist2
-rw-r--r--sysdeps/mach/hurd/i386/libpthread.abilist1
-rw-r--r--sysdeps/mach/hurd/x86_64/libc.abilist2
-rw-r--r--sysdeps/mach/hurd/x86_64/libpthread.abilist1
5 files changed, 11 insertions, 3 deletions
diff --git a/sysdeps/htl/pt-condattr-getpshared.c b/sysdeps/htl/pt-condattr-getpshared.c
index 7aea9e6..90e9c48 100644
--- a/sysdeps/htl/pt-condattr-getpshared.c
+++ b/sysdeps/htl/pt-condattr-getpshared.c
@@ -17,11 +17,17 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
+#include <shlib-compat.h>
#include <pt-internal.h>
int
-pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+__pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
{
*pshared = attr->__pshared;
return 0;
}
+versioned_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_condattr_getpshared, pthread_condattr_getpshared, GLIBC_2_12);
+#endif
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist
index 72c0913..de6db60 100644
--- a/sysdeps/mach/hurd/i386/libc.abilist
+++ b/sysdeps/mach/hurd/i386/libc.abilist
@@ -51,6 +51,7 @@ GLIBC_2.12 pthread_attr_setstackaddr F
GLIBC_2.12 pthread_attr_setstacksize F
GLIBC_2.12 pthread_condattr_destroy F
GLIBC_2.12 pthread_condattr_getclock F
+GLIBC_2.12 pthread_condattr_getpshared F
GLIBC_2.12 pthread_equal F
GLIBC_2.12 pthread_getschedparam F
GLIBC_2.12 pthread_self F
@@ -2506,6 +2507,7 @@ GLIBC_2.41 pthread_attr_setstack F
GLIBC_2.41 pthread_attr_setstackaddr F
GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
+GLIBC_2.41 pthread_condattr_getpshared F
GLIBC_2.5 __readlinkat_chk F
GLIBC_2.5 inet6_opt_append F
GLIBC_2.5 inet6_opt_find F
diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist
index 819e74a..6a1e221 100644
--- a/sysdeps/mach/hurd/i386/libpthread.abilist
+++ b/sysdeps/mach/hurd/i386/libpthread.abilist
@@ -36,7 +36,6 @@ GLIBC_2.12 pthread_cond_init F
GLIBC_2.12 pthread_cond_signal F
GLIBC_2.12 pthread_cond_timedwait F
GLIBC_2.12 pthread_cond_wait F
-GLIBC_2.12 pthread_condattr_getpshared F
GLIBC_2.12 pthread_condattr_init F
GLIBC_2.12 pthread_condattr_setclock F
GLIBC_2.12 pthread_condattr_setpshared F
diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist
index c070d6c..9a54905 100644
--- a/sysdeps/mach/hurd/x86_64/libc.abilist
+++ b/sysdeps/mach/hurd/x86_64/libc.abilist
@@ -1539,6 +1539,7 @@ GLIBC_2.38 pthread_cond_timedwait F
GLIBC_2.38 pthread_cond_wait F
GLIBC_2.38 pthread_condattr_destroy F
GLIBC_2.38 pthread_condattr_getclock F
+GLIBC_2.38 pthread_condattr_getpshared F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_equal F
GLIBC_2.38 pthread_exit F
@@ -2202,6 +2203,7 @@ GLIBC_2.41 pthread_attr_setstack F
GLIBC_2.41 pthread_attr_setstackaddr F
GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
+GLIBC_2.41 pthread_condattr_getpshared F
HURD_CTHREADS_0.3 __cthread_getspecific F
HURD_CTHREADS_0.3 __cthread_keycreate F
HURD_CTHREADS_0.3 __cthread_setspecific F
diff --git a/sysdeps/mach/hurd/x86_64/libpthread.abilist b/sysdeps/mach/hurd/x86_64/libpthread.abilist
index 6397cd5..ae4480c 100644
--- a/sysdeps/mach/hurd/x86_64/libpthread.abilist
+++ b/sysdeps/mach/hurd/x86_64/libpthread.abilist
@@ -55,7 +55,6 @@ GLIBC_2.38 pthread_cond_init F
GLIBC_2.38 pthread_cond_signal F
GLIBC_2.38 pthread_cond_timedwait F
GLIBC_2.38 pthread_cond_wait F
-GLIBC_2.38 pthread_condattr_getpshared F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_condattr_setclock F
GLIBC_2.38 pthread_condattr_setpshared F