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.
This commit is contained in:
Samuel Thibault 2019-01-02 22:21:34 +01:00
parent acb55dcb89
commit 55137f7dd9
6 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -35,3 +35,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
return EINVAL;
}
}
stub_warning (pthread_barrierattr_setpshared)

View File

@ -35,3 +35,4 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
return EINVAL;
}
}
stub_warning (pthread_condattr_setpshared)

View File

@ -35,3 +35,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
return EINVAL;
}
}
stub_warning (pthread_mutexattr_setpshared)

View File

@ -35,3 +35,4 @@ pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
return EINVAL;
}
}
stub_warning (pthread_rwlockattr_setpshared)

View File

@ -32,3 +32,4 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attrp, int pshared)
attrp->__pshared = pshared;
return 0;
}
stub_warning (pthread_mutexattr_setpshared)