musl/arch/m68k
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
..
bits remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
arch.mak switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
atomic_arch.h add m68k port 2018-06-19 13:24:05 -04:00
crt_arch.h add m68k port 2018-06-19 13:24:05 -04:00
kstat.h decouple struct stat from kernel type 2019-07-18 19:38:12 -04:00
pthread_arch.h add m68k port 2018-06-19 13:24:05 -04:00
reloc.h add m68k port 2018-06-19 13:24:05 -04:00
syscall_arch.h work around broken kernel struct ipc_perm on some big endian archs 2018-06-20 00:07:09 -04:00