aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-16 14:08:56 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-16 14:08:56 +0000
commit6c43d94a96a15b0655049b3d37055421fc6b7e3d (patch)
tree89dcbf1e18a1e2f0de39ac15fad819f123700b44
parentca843defbcbd2dc95b9342189e5dc430e9bcb743 (diff)
downloadglibc-6c43d94a96a15b0655049b3d37055421fc6b7e3d.zip
glibc-6c43d94a96a15b0655049b3d37055421fc6b7e3d.tar.gz
glibc-6c43d94a96a15b0655049b3d37055421fc6b7e3d.tar.bz2
htl: Add missing functions and defines for robust mutexes
-rw-r--r--htl/Versions5
-rw-r--r--sysdeps/htl/pthread.h1
-rw-r--r--sysdeps/mach/hurd/i386/libpthread.abilist6
3 files changed, 12 insertions, 0 deletions
diff --git a/htl/Versions b/htl/Versions
index 1ec6f36..a0962e6 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 17f82e7..d639385 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 4a5e1fb..6e75c90 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