about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2020-08-05 16:47:28 +0200
committerAndreas Schwab <schwab@suse.de>2021-03-07 15:42:45 +0100
commit64642dbccf6ffebc11a5d9942bf532db8fc63937 (patch)
tree382a31febca74c990c59addd08026ffaded07521
parent57796e0afd614b36394e2ca68598825595e4e6d0 (diff)
downloadglibc-64642dbccf6ffebc11a5d9942bf532db8fc63937.tar.gz
glibc-64642dbccf6ffebc11a5d9942bf532db8fc63937.tar.xz
glibc-64642dbccf6ffebc11a5d9942bf532db8fc63937.zip
aarch64: adjust bits/typesizes.h
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h
index e3975c762c..a38054aae4 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h
@@ -47,9 +47,18 @@
 #define __FSWORD_T_TYPE		__SWORD_TYPE
 #define __ID_T_TYPE		__U32_TYPE
 #define __CLOCK_T_TYPE		__SLONGWORD_TYPE
-#define __TIME_T_TYPE		__SLONGWORD_TYPE
+#if __TIMESIZE == 64 && __WORDSIZE == 32
+# define __TIME_T_TYPE		__SQUAD_TYPE
+#else
+# define __TIME_T_TYPE		__SLONGWORD_TYPE
+#endif
 #define __USECONDS_T_TYPE	__U32_TYPE
-#define __SUSECONDS_T_TYPE	__SLONGWORD_TYPE
+#if __TIMESIZE == 64 && __WORDSIZE == 32
+# define __SUSECONDS_T_TYPE	__SQUAD_TYPE
+#else
+# define __SUSECONDS_T_TYPE	__SLONGWORD_TYPE
+#endif
+#define __SUSECONDS64_T_TYPE	__SQUAD_TYPE
 #define __DADDR_T_TYPE		__S32_TYPE
 #define __KEY_T_TYPE		__S32_TYPE
 #define __CLOCKID_T_TYPE	__S32_TYPE
@@ -82,6 +91,9 @@
 /* And for __fsbilcnt_t and __fsbilcnt64_t.  */
 #define __FSFILCNT_T_TYPE_MATCHES_FSFILCNT64_T_TYPE	1
 
+/* And for getitimer, setitimer and rusage  */
+#define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64)
+
 /* Number of descriptors that can fit in an `fd_set'.  */
 #define __FD_SETSIZE		1024