From 55137f7dd939bc8403a63f4cade73ff90575b821 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 2 Jan 2019 22:21:34 +0100 Subject: 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. --- sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/mach/hurd') diff --git a/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c b/sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c index faed769b70..f99e958601 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) -- cgit 1.4.1