From e318cbbb738426ecb6a4b023b75837609b9d0a64 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 23 Apr 2024 19:23:00 +0300 Subject: [PATCH] git-libpthread_setpshared commit 55137f7dd939bc8403a63f4cade73ff90575b821 Author: Samuel Thibault Date: Wed Jan 2 22:21:34 2019 +0100 hurd: advertise *_setpshared as not supported The functions themselves return 0, but initializing a mutex/etc with . pshared set to 1 will fail anyway . * sysdeps/htl/pt-barrierattr-setpshared.c (pthread_barrierattr_setpshared): Add stub warning. * sysdeps/htl/pt-condattr-setpshared.c (pthread_condattr_setpshared): Likewise. * sysdeps/htl/pt-mutexattr-setpshared.c (pthread_mutexattr_setpshared): Likewise. * sysdeps/htl/pt-rwlockattr-setpshared.c (pthread_rwlockattr_setpshared): Likewise. * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c (pthread_mutexattr_setpshared): Likewise. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-libpthread_setpshared.diff --- sysdeps/htl/pt-barrierattr-setpshared.c | 1 + sysdeps/htl/pt-condattr-setpshared.c | 1 + sysdeps/htl/pt-mutexattr-setpshared.c | 1 + sysdeps/htl/pt-rwlockattr-setpshared.c | 1 + sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c | 1 + 5 files changed, 5 insertions(+) diff --git a/sysdeps/htl/pt-barrierattr-setpshared.c b/sysdeps/htl/pt-barrierattr-setpshared.c index c3aed869c..444d87c67 100644 --- a/sysdeps/htl/pt-barrierattr-setpshared.c +++ b/sysdeps/htl/pt-barrierattr-setpshared.c @@ -35,3 +35,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared) return EINVAL; } } +stub_warning (pthread_barrierattr_setpshared) diff --git a/sysdeps/htl/pt-condattr-setpshared.c b/sysdeps/htl/pt-condattr-setpshared.c index e1d3f682e..73ead6772 100644 --- a/sysdeps/htl/pt-condattr-setpshared.c +++ b/sysdeps/htl/pt-condattr-setpshared.c @@ -35,3 +35,4 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared) return EINVAL; } } +stub_warning (pthread_condattr_setpshared) diff --git a/sysdeps/htl/pt-mutexattr-setpshared.c b/sysdeps/htl/pt-mutexattr-setpshared.c index f3136436e..e616f688a 100644 --- a/sysdeps/htl/pt-mutexattr-setpshared.c +++ b/sysdeps/htl/pt-mutexattr-setpshared.c @@ -35,3 +35,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared) return EINVAL; } } +stub_warning (pthread_mutexattr_setpshared) diff --git a/sysdeps/htl/pt-rwlockattr-setpshared.c b/sysdeps/htl/pt-rwlockattr-setpshared.c index 3ec15147c..33ad7a2b5 100644 --- a/sysdeps/htl/pt-rwlockattr-setpshared.c +++ b/sysdeps/htl/pt-rwlockattr-setpshared.c @@ -35,3 +35,4 @@ pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared) return EINVAL; } } +stub_warning (pthread_rwlockattr_setpshared) diff --git a/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c b/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c index 6bed94fbc..08ed8f40f 100644 --- a/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c +++ b/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c @@ -32,3 +32,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attrp, int pshared) attrp->__pshared = pshared; return 0; } +stub_warning (pthread_mutexattr_setpshared) -- 2.30.2