From b93183e399b5e468932f27a61c885ba78d9587cd Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 27 Jul 2019 12:20:07 -0400 Subject: [PATCH] don't use futimesat syscall as utimensat fallback on x32 kernel support for x32 was added long after the utimensat syscall was already available, so having a fallback is just wasted code size. also, for changes related to time64 support on 32-bit archs, I want to be able to assume the old futimesat syscall always works with longs, which is true except for x32. by ensuring that it's not used on x32, the needed invariant is established. --- arch/x32/syscall_arch.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x32/syscall_arch.h b/arch/x32/syscall_arch.h index 344da03c..a3dfcd69 100644 --- a/arch/x32/syscall_arch.h +++ b/arch/x32/syscall_arch.h @@ -124,3 +124,5 @@ static __inline long __syscall6(long long n, long long a1, long long a2, long lo "d"(a3), "r"(a4), "r"(a5), "r"(a6) : "rcx", "r11", "memory"); return ret; } + +#undef SYS_futimesat -- 2.25.1