about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/s390
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-08-13 13:35:28 -0700
committerAlistair Francis <alistair.francis@wdc.com>2019-10-24 09:14:26 -0700
commitacab05949fd28cdac6358f9a143cd010e08914b7 (patch)
tree1c2b98ae3fc69bdf85029a636e1f02cfb88bb18c /sysdeps/unix/sysv/linux/s390
parent3007ad2140256e83918ce531435385fa003e9fce (diff)
downloadglibc-acab05949fd28cdac6358f9a143cd010e08914b7.tar.gz
glibc-acab05949fd28cdac6358f9a143cd010e08914b7.tar.xz
glibc-acab05949fd28cdac6358f9a143cd010e08914b7.zip
Define __STATFS_MATCHES_STATFS64
Add a new macro __STATFS_MATCHES_STATFS64 that specifies if fsblkcnt_t
matches fsblkcnt64_t and if fsfilcnt_t matches fsfilcnt64_t.

As we don't have the padding we also need to update the overflow checker
to not access the undefined members.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390')
-rw-r--r--sysdeps/unix/sysv/linux/s390/bits/typesizes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/bits/typesizes.h b/sysdeps/unix/sysv/linux/s390/bits/typesizes.h
index 94234f9242..38034e3ad4 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/typesizes.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/typesizes.h
@@ -78,8 +78,13 @@
 
 /* And for __rlim_t and __rlim64_t.  */
 # define __RLIM_T_MATCHES_RLIM64_T	1
+
+/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.  */
+# define __STATFS_MATCHES_STATFS64  1
 #else
 # define __RLIM_T_MATCHES_RLIM64_T	0
+
+# define __STATFS_MATCHES_STATFS64  0
 #endif
 
 /* Number of descriptors that can fit in an `fd_set'.  */