aboutsummaryrefslogtreecommitdiff
path: root/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-07 03:12:36 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-06-07 03:14:49 +0200
commitbe22a151f3e2c2e4b9127d4fa30b269f30a7ea2e (patch)
tree8cac3fb673b78c9fe02a404e142350756ce9742b /htl
parent6c5ca98d096a5f61144555c76fdfd3c2ad561082 (diff)
downloadglibc-be22a151f3e2c2e4b9127d4fa30b269f30a7ea2e.tar
glibc-be22a151f3e2c2e4b9127d4fa30b269f30a7ea2e.tar.gz
glibc-be22a151f3e2c2e4b9127d4fa30b269f30a7ea2e.tar.bz2
glibc-be22a151f3e2c2e4b9127d4fa30b269f30a7ea2e.zip
htl: Add sem_clockwait support
* sysdeps/htl/sem-timedwait.c (__sem_timedwait_internal): Add clock_id parameter instead of hardcoding CLOCK_REALTIME. (__sem_clockwait): New function. (sem_clockwait): New weak alias. * sysdeps/htl/sem-wait.c (__sem_timedwait_internal): Update declaration. (__sem_wait): Update call to __sem_timedwait_internal. * htl/Versions (GLIBC_2.32): Add sem_clockwait. * sysdeps/mach/hurd/i386/libpthread.abilist (sem_clockwait): Add symbol. * nptl/Makefile (tests): Move tst-sem5 to... * sysdeps/pthread/Makefile (tests): ... here.
Diffstat (limited to 'htl')
-rw-r--r--htl/Versions4
1 files changed, 3 insertions, 1 deletions
diff --git a/htl/Versions b/htl/Versions
index 5fa9ef637c..fd9eefbaee 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -143,8 +143,8 @@ libpthread {
pthread_hurd_cond_timedwait_np;
}
- # C11 thread symbols.
GLIBC_2.32 {
+ # C11 thread symbols.
thrd_create; thrd_detach; thrd_exit; thrd_join;
mtx_init; mtx_lock; mtx_timedlock; mtx_trylock; mtx_unlock; mtx_destroy;
call_once;
@@ -162,6 +162,8 @@ libpthread {
pthread_rwlock_clockrdlock; pthread_rwlock_clockwrlock;
pthread_tryjoin_np; pthread_timedjoin_np; pthread_clockjoin_np;
+
+ sem_clockwait;
}
GLIBC_PRIVATE {