hurd: advertise *_setpshared as not supported
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 2 Jan 2019 21:21:34 +0000 (22:21 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 2 Jan 2019 21:21:34 +0000 (22:21 +0100)
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.

ChangeLog
sysdeps/htl/pt-barrierattr-setpshared.c
sysdeps/htl/pt-condattr-setpshared.c
sysdeps/htl/pt-mutexattr-setpshared.c
sysdeps/htl/pt-rwlockattr-setpshared.c
sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c

index 75c80e6..eabbb51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * 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.
+
 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
index b4999e8..4756a39 100644 (file)
@@ -35,3 +35,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_barrierattr_setpshared)
index 46662f7..aff0537 100644 (file)
@@ -35,3 +35,4 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_condattr_setpshared)
index fb7da72..a3ecf0e 100644 (file)
@@ -35,3 +35,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_mutexattr_setpshared)
index 12597dc..63eb14a 100644 (file)
@@ -35,3 +35,4 @@ pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_rwlockattr_setpshared)
index faed769..f99e958 100644 (file)
@@ -32,3 +32,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attrp, int pshared)
   attrp->__pshared = pshared;
   return 0;
 }
+stub_warning (pthread_mutexattr_setpshared)