From be22a151f3e2c2e4b9127d4fa30b269f30a7ea2e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 7 Jun 2020 03:12:36 +0200 Subject: 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. --- htl/Versions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'htl') 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 { -- cgit v1.2.3