public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/schwab/ilp32-2.32] aarch64: adjust bits/typesizes.h
@ 2020-08-05 19:55 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2020-08-05 19:55 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ed70203173657923e9056462355ce903867ff2c1

commit ed70203173657923e9056462355ce903867ff2c1
Author: Andreas Schwab <schwab@suse.de>
Date:   Wed Aug 5 16:47:28 2020 +0200

    aarch64: adjust bits/typesizes.h

Diff:
---
 sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h | 16 ++++++++++++++--
 1 file 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-05 19:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 19:55 [glibc/schwab/ilp32-2.32] aarch64: adjust bits/typesizes.h Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).