From: Dmitry V. Levin Date: Sun, 5 May 2019 22:28:34 +0000 (+0000) Subject: Introduce ARCH_TIMESIZE X-Git-Tag: v5.1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f4285dcbbca12f73a873a67593fe61f0f15a82a;p=strace Introduce ARCH_TIMESIZE This is going to be used to implement new timespec parsers. * linux/arch_defs_.h [!ARCH_TIMESIZE] (ARCH_TIMESIZE): Define to SIZEOF_LONG. * linux/x32/arch_defs_.h (ARCH_TIMESIZE): Define to 8. --- diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h index 69d6dbb0..5baf3f91 100644 --- a/linux/arch_defs_.h +++ b/linux/arch_defs_.h @@ -7,6 +7,10 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ +#ifndef ARCH_TIMESIZE +# define ARCH_TIMESIZE SIZEOF_LONG +#endif + #ifndef HAVE_ARCH_GETRVAL2 # define HAVE_ARCH_GETRVAL2 0 #endif diff --git a/linux/x32/arch_defs_.h b/linux/x32/arch_defs_.h index 18321f51..91e39eea 100644 --- a/linux/x32/arch_defs_.h +++ b/linux/x32/arch_defs_.h @@ -5,6 +5,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ +#define ARCH_TIMESIZE 8 #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1