diff mbox series

[hurd,commited] htl: Add missing functions and defines for robust mutexes

Message ID 20200216141300.400829-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] htl: Add missing functions and defines for robust mutexes | expand

Commit Message

Samuel Thibault Feb. 16, 2020, 2:13 p.m. UTC
---
 htl/Versions                              | 5 +++++
 sysdeps/htl/pthread.h                     | 1 +
 sysdeps/mach/hurd/i386/libpthread.abilist | 6 ++++++
 3 files changed, 12 insertions(+)
diff mbox series

Patch

diff --git a/htl/Versions b/htl/Versions
index 1ec6f363d5..a0962e6a42 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -150,6 +150,11 @@  libpthread {
     call_once;
     cnd_broadcast; cnd_destroy; cnd_init; cnd_signal; cnd_timedwait; cnd_wait;
     tss_create; tss_delete; tss_get; tss_set;
+
+    pthread_mutexattr_getrobust; pthread_mutexattr_getrobust_np;
+    pthread_mutexattr_setrobust; pthread_mutexattr_setrobust_np;
+
+    pthread_mutex_consistent; pthread_mutex_consistent_np;
   }
 
   GLIBC_PRIVATE {
diff --git a/sysdeps/htl/pthread.h b/sysdeps/htl/pthread.h
index 17f82e7180..d639385eb3 100644
--- a/sysdeps/htl/pthread.h
+++ b/sysdeps/htl/pthread.h
@@ -273,6 +273,7 @@  extern pthread_t pthread_self (void) __THROW;
 #ifdef __USE_XOPEN2K
 # define PTHREAD_MUTEX_STALLED __PTHREAD_MUTEX_STALLED
 # define PTHREAD_MUTEX_ROBUST __PTHREAD_MUTEX_ROBUST
+# define PTHREAD_MUTEX_ROBUST_NP __PTHREAD_MUTEX_ROBUST
 #endif
 
 #include <bits/types/struct___pthread_mutexattr.h>
diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist
index 4a5e1fb750..6e75c90009 100644
--- a/sysdeps/mach/hurd/i386/libpthread.abilist
+++ b/sysdeps/mach/hurd/i386/libpthread.abilist
@@ -155,6 +155,12 @@  GLIBC_2.32 mtx_lock F
 GLIBC_2.32 mtx_timedlock F
 GLIBC_2.32 mtx_trylock F
 GLIBC_2.32 mtx_unlock F
+GLIBC_2.32 pthread_mutex_consistent F
+GLIBC_2.32 pthread_mutex_consistent_np F
+GLIBC_2.32 pthread_mutexattr_getrobust F
+GLIBC_2.32 pthread_mutexattr_getrobust_np F
+GLIBC_2.32 pthread_mutexattr_setrobust F
+GLIBC_2.32 pthread_mutexattr_setrobust_np F
 GLIBC_2.32 thrd_create F
 GLIBC_2.32 thrd_detach F
 GLIBC_2.32 thrd_exit F