musl/arch
Rich Felker 5a105f19b5 remove legacy clock_gettime and gettimeofday from public syscall.h
some nontrivial number of applications have historically performed
direct syscalls for these operations rather than using the public
functions. such usage is invalid now that time_t is 64-bit and these
syscalls no longer match the types they are used with, and it was
already harmful before (by suppressing use of vdso).

since syscall() has no type safety, incorrect usage of these syscalls
can't be caught at compile-time. so, without manually inspecting or
running additional tools to check sources, the risk of such errors
slipping through is high.

this patch renames the syscalls on 32-bit archs to clock_gettime32 and
gettimeofday_time32, so that applications using the original names
will fail to build without being fixed.

note that there are a number of other syscalls that may also be unsafe
to use directly after the time64 switchover, but (1) these are the
main two that seem to be in widespread use, and (2) most of the others
continue to have valid usage with a null timeval/timespec argument, as
the argument is an optional timeout or similar.
2020-01-30 11:25:07 -05:00
..
aarch64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
arm remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
generic move struct dirent to bits header, allow NAME_MAX to vary 2020-01-25 23:08:55 -05:00
i386 remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
m68k remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
microblaze remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
mips remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
mips64 mips: add clone3 syscall numbers from linux v5.4 2019-12-30 18:14:08 -05:00
mipsn32 remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
or1k remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
powerpc remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
powerpc64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
riscv64 fix riscv64 a_cas inline asm operand sign extension 2020-01-22 14:57:16 -05:00
s390x add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
sh remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
x32 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00
x86_64 add clone3 syscall number from linux v5.3 2019-12-30 18:13:56 -05:00