]> sourceware.org Git - glibc.git/commitdiff
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 75c80e6f02c588a8f2b13cf655113bfb9c60f75c..eabbb51ea82b531ff5633b8eeed6ec34ce957614 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 b4999e80efc5ac116378d5cbd3e5005ac57c8578..4756a39fad720b68b2ca9df8d8749aad885f0f2c 100644 (file)
@@ -35,3 +35,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_barrierattr_setpshared)
index 46662f73fadf24abd55501d9446d5da3e6d139c0..aff0537f663cd5bb8a3bce1b478f26387879c3a8 100644 (file)
@@ -35,3 +35,4 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_condattr_setpshared)
index fb7da72ae022210b4c5c3ecec0f5d07c7d9d713e..a3ecf0ea1a1296bc553adc9cedeb83c953eedffa 100644 (file)
@@ -35,3 +35,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_mutexattr_setpshared)
index 12597dceafd68c99c1353aacb81c3fdd6c9f84aa..63eb14a09d5037ff1cdac372d960adfb57d67d95 100644 (file)
@@ -35,3 +35,4 @@ pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
       return EINVAL;
     }
 }
+stub_warning (pthread_rwlockattr_setpshared)
index faed769b700e84bbb79877bfa4ecbd1b7c17387c..f99e95860188f9bbdc779d41b9824d96054a05cf 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)
This page took 0.074999 seconds and 5 git commands to generate.