]> granicus.if.org Git - strace/commitdiff
Introduce HAVE_ARCH_TIME32_SYSCALLS and HAVE_ARCH_OLD_TIME64_SYSCALLS
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)
These are going to control whether to compile parsers of 32-bit and
old 64-bit time syscalls.

* linux/arch_defs_.h [!MIN_WORDSIZE] (MIN_WORDSIZE): Define.
[!HAVE_ARCH_TIME32_SYSCALLS] (HAVE_ARCH_TIME32_SYSCALLS): Define.
[!HAVE_ARCH_OLD_TIME64_SYSCALLS] (HAVE_ARCH_OLD_TIME64_SYSCALLS):
Define.
* linux/alpha/arch_defs_.h (HAVE_ARCH_TIME32_SYSCALLS): Define.
* linux/x32/arch_defs_.h (HAVE_ARCH_OLD_TIME64_SYSCALLS): Define.

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

index 6ae6f06281de922b660875fb9da52411906a3002..572586fa857796440f3cb3f8d83a849fe5fbb2c0 100644 (file)
@@ -7,3 +7,4 @@
 
 #define HAVE_ARCH_GETRVAL2 1
 #define HAVE_ARCH_DEDICATED_ERR_REG 1
+#define HAVE_ARCH_TIME32_SYSCALLS 1
index ccb3e8db8c0336e36de00b6c0201a3db5c668ea9..69d6dbb04f5d16c3a32ea3cdc0dc37a53506cecc 100644 (file)
 #ifndef ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING
 # define ARCH_NEEDS_SET_ERROR_FOR_SCNO_TAMPERING 0
 #endif
+
+#ifndef MIN_WORDSIZE
+# if SUPPORTED_PERSONALITIES > 1
+#  define MIN_WORDSIZE 4
+# else
+#  define MIN_WORDSIZE SIZEOF_LONG
+# endif
+#endif
+
+#ifndef HAVE_ARCH_TIME32_SYSCALLS
+# define HAVE_ARCH_TIME32_SYSCALLS (MIN_WORDSIZE == 4)
+#endif
+
+#ifndef HAVE_ARCH_OLD_TIME64_SYSCALLS
+# define HAVE_ARCH_OLD_TIME64_SYSCALLS (SIZEOF_LONG == 8)
+#endif
index ed9261f5aff258b345df5044b7df73324a1939d3..18321f51a2d0e2e111dad6a6a2afaf879971f688 100644 (file)
@@ -8,4 +8,5 @@
 #define HAVE_ARCH_OLD_MMAP 1
 #define HAVE_ARCH_OLD_SELECT 1
 #define HAVE_ARCH_UID16_SYSCALLS 1
+#define HAVE_ARCH_OLD_TIME64_SYSCALLS 1
 #define SUPPORTED_PERSONALITIES 2