summaryrefslogtreecommitdiff
path: root/arch/x32/syscall_arch.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-07-27 12:20:07 -0400
committerRich Felker <dalias@aerifal.cx>2019-07-27 13:43:13 -0400
commitb93183e399b5e468932f27a61c885ba78d9587cd (patch)
treeed6cb8375ad7ca0055138cef1c684804a7df2bc1 /arch/x32/syscall_arch.h
parentcb856a616076c0df27dad7222640814ae58cdc96 (diff)
downloadmusl-b93183e399b5e468932f27a61c885ba78d9587cd.tar.gz
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.
Diffstat (limited to 'arch/x32/syscall_arch.h')
-rw-r--r--arch/x32/syscall_arch.h2
1 files changed, 2 insertions, 0 deletions
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