From 2e554617e5a6a41bf3f6c6306c753cd53abf728c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 30 Jul 2019 23:48:25 -0400 Subject: ioctl: add fallback for new time64 SIOCGSTAMP[NS] without this, the SIOCGSTAMP and SIOCGSTAMPNS ioctl commands, for obtaining timestamps, would stop working on pre-5.1 kernels after time_t is switched to 64-bit and their values are changed to the new time64 versions. new code is written such that it's statically unreachable on 64-bit archs, and on existing 32-bit archs until the macro values are changed to activate 64-bit time_t. --- arch/sh/syscall_arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/sh/syscall_arch.h') diff --git a/arch/sh/syscall_arch.h b/arch/sh/syscall_arch.h index 48f61d94..628d8d37 100644 --- a/arch/sh/syscall_arch.h +++ b/arch/sh/syscall_arch.h @@ -88,3 +88,6 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo } #define SYSCALL_IPC_BROKEN_MODE + +#define SIOCGSTAMP_OLD (2U<<30 | 's'<<8 | 100 | 8<<16) +#define SIOCGSTAMPNS_OLD (2U<<30 | 's'<<8 | 101 | 8<<16) -- cgit v1.2.1