internally, define plain syscalls, if missing, as their time64 variants
authorRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2019 17:29:26 +0000 (13:29 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2019 17:43:13 +0000 (13:43 -0400)
commit4bbd7baea7c8538b3fb8e30f7b022a1eee071450
tree8d8a1025511e2d9ce7d378f3bc9f979f04706cf7
parent40aa18d55ab763e69ad16d0cf1cebea708ffde47
internally, define plain syscalls, if missing, as their time64 variants

this commit has no effect whatsoever right now, but is in preparation
for a future riscv32 port and other future 32-bit archs that will be
"time64-only" from the start on the kernel side.

together with the previous x32 changes, this commit ensures that
syscall call points that don't care about time (passing null timeouts,
etc.) can continue to do so without having to special-case time64-only
archs, and allows code using the time64 syscalls to uniformly test for
the need to fallback with SYS_foo != SYS_foo_time64, rather than
needing to check defined(SYS_foo) && SYS_foo != SYS_foo_time64.
src/internal/syscall.h