diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:17:07 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 01:24:43 +0100 |
commit | 196e62cbe4acdab22a95740b618c699863ed460c (patch) | |
tree | 5ef9cc8050f63da1e83683b703918f0c52931c9f /sysdeps/mach | |
parent | e404be33feaa586231fe30e3bdf6d380a79c2679 (diff) | |
download | glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.gz glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.bz2 glibc-196e62cbe4acdab22a95740b618c699863ed460c.zip |
htl: Add type sizes in bits/pthreadtypes-arch.h and check them
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/htl/pt-mutex-init.c | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/htl/pt-mutexattr-init.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/htl/pt-mutex-init.c b/sysdeps/mach/hurd/htl/pt-mutex-init.c index 4665bfaf5f..6b804116a5 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-init.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-init.c @@ -34,6 +34,8 @@ static const pthread_mutexattr_t dfl_attr = { int _pthread_mutex_init (pthread_mutex_t *mtxp, const pthread_mutexattr_t *attrp) { + ASSERT_TYPE_SIZE (pthread_mutex_t, __SIZEOF_PTHREAD_MUTEX_T); + if (attrp == NULL) attrp = &dfl_attr; diff --git a/sysdeps/mach/hurd/htl/pt-mutexattr-init.c b/sysdeps/mach/hurd/htl/pt-mutexattr-init.c index f659a51c28..569ed11c9c 100644 --- a/sysdeps/mach/hurd/htl/pt-mutexattr-init.c +++ b/sysdeps/mach/hurd/htl/pt-mutexattr-init.c @@ -33,6 +33,8 @@ static const pthread_mutexattr_t dfl_attr = { int __pthread_mutexattr_init (pthread_mutexattr_t *attrp) { + ASSERT_TYPE_SIZE (pthread_mutexattr_t, __SIZEOF_PTHREAD_MUTEXATTR_T); + *attrp = dfl_attr; return 0; } |