]> granicus.if.org Git - strace/commitdiff
Introduce ARCH_TIMESIZE
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 5 May 2019 22:28:34 +0000 (22:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 5 May 2019 22:28:34 +0000 (22:28 +0000)
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.

linux/arch_defs_.h
linux/x32/arch_defs_.h

index 69d6dbb04f5d16c3a32ea3cdc0dc37a53506cecc..5baf3f911e63b07d41bcca1d0c7f1423f9ef7bf3 100644 (file)
@@ -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
index 18321f51a2d0e2e111dad6a6a2afaf879971f688..91e39eea4437e71373a1ec0bd805e487478b5437 100644 (file)
@@ -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