aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-26 22:53:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 02:03:17 +0100
commitf1b50413543205ddc246a09819b6ff47a714d763 (patch)
tree2f66079b7b5f819eb5a1d02c15907b7b51c439ea
parent7ded100d36a8decd0409f695bab5bee5e35395a6 (diff)
downloadglibc-f1b50413543205ddc246a09819b6ff47a714d763.zip
glibc-f1b50413543205ddc246a09819b6ff47a714d763.tar.gz
glibc-f1b50413543205ddc246a09819b6ff47a714d763.tar.bz2
htl: move pthread_condattr_getclock into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241126205329.2215295-4-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions3
-rw-r--r--sysdeps/htl/pt-condattr-getclock.c9
-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
7 files changed, 14 insertions, 6 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 5f9b2ba..ef01902 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -93,7 +93,6 @@ libpthread-routines := \
pt-rwlock-timedwrlock \
pt-rwlock-unlock \
pt-condattr-init \
- pt-condattr-getclock \
pt-condattr-getpshared \
pt-condattr-setclock \
pt-condattr-setpshared \
@@ -206,6 +205,7 @@ routines := \
pt-attr-setstacksize \
pt-cond \
pt-condattr-destroy \
+ pt-condattr-getclock \
pt-getschedparam \
pt-nthreads \
pt-pthread_self \
diff --git a/htl/Versions b/htl/Versions
index 7aa8a1f..887703e 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -26,6 +26,7 @@ libc {
pthread_attr_setscope;
pthread_attr_setschedparam;
pthread_attr_init;
+ pthread_condattr_getclock;
pthread_condattr_destroy;
}
@@ -65,6 +66,7 @@ libc {
pthread_attr_setstackaddr;
pthread_attr_setstack;
pthread_attr_setguardsize;
+ pthread_condattr_getclock;
}
@@ -121,7 +123,6 @@ libpthread {
pthread_cond_broadcast; pthread_cond_destroy; pthread_cond_init;
pthread_cond_signal; pthread_cond_timedwait; pthread_cond_wait;
- pthread_condattr_getclock;
pthread_condattr_getpshared; pthread_condattr_init;
pthread_condattr_setclock; pthread_condattr_setpshared;
diff --git a/sysdeps/htl/pt-condattr-getclock.c b/sysdeps/htl/pt-condattr-getclock.c
index a1ac71b..cea53f4 100644
--- a/sysdeps/htl/pt-condattr-getclock.c
+++ b/sysdeps/htl/pt-condattr-getclock.c
@@ -17,13 +17,18 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
+#include <shlib-compat.h>
#include <time.h>
-
#include <pt-internal.h>
int
-pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t * clock)
+__pthread_condattr_getclock (const pthread_condattr_t *attr, clockid_t * clock)
{
*clock = attr->__clock;
return 0;
}
+versioned_symbol (libc, __pthread_condattr_getclock, pthread_condattr_getclock, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_condattr_getclock, pthread_condattr_getclock, GLIBC_2_12);
+#endif
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist
index 5069319..72c0913 100644
--- a/sysdeps/mach/hurd/i386/libc.abilist
+++ b/sysdeps/mach/hurd/i386/libc.abilist
@@ -50,6 +50,7 @@ GLIBC_2.12 pthread_attr_setstack F
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_equal F
GLIBC_2.12 pthread_getschedparam F
GLIBC_2.12 pthread_self F
@@ -2504,6 +2505,7 @@ GLIBC_2.41 pthread_attr_setguardsize F
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.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 7000b00..819e74a 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_getclock F
GLIBC_2.12 pthread_condattr_getpshared F
GLIBC_2.12 pthread_condattr_init F
GLIBC_2.12 pthread_condattr_setclock F
diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist
index f147fcb..c070d6c 100644
--- a/sysdeps/mach/hurd/x86_64/libc.abilist
+++ b/sysdeps/mach/hurd/x86_64/libc.abilist
@@ -1538,6 +1538,7 @@ 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_destroy F
+GLIBC_2.38 pthread_condattr_getclock F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_equal F
GLIBC_2.38 pthread_exit F
@@ -2200,6 +2201,7 @@ GLIBC_2.41 pthread_attr_setguardsize F
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
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 91da561..6397cd5 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_getclock F
GLIBC_2.38 pthread_condattr_getpshared F
GLIBC_2.38 pthread_condattr_init F
GLIBC_2.38 pthread_condattr_setclock F