musl/arch/mipsn32/bits
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
..
alltypes.h.in move time_t and suseconds_t definitions to common alltypes.h.in 2019-11-02 18:30:56 -04:00
errno.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
fcntl.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
fenv.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
float.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
hwcap.h mips: add HWCAP_ flags from linux v4.17 2018-06-19 13:27:27 -04:00
ioctl.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
ipcstat.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
mman.h add MAP_SYNC and MAP_SHARED_VALIDATE from linux v4.15 2018-02-22 18:48:58 -05:00
msg.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
poll.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
posix.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
ptrace.h add support for arch-specific ptrace command macros 2018-07-17 22:25:08 -04:00
reg.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
resource.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
sem.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
setjmp.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
shm.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
signal.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
socket.h move time64 socket options from arch bits to top-level sys/socket.h 2019-11-02 18:30:56 -04:00
stat.h switch all existing 32-bit archs to 64-bit time_t 2019-11-02 18:30:56 -04:00
statfs.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
stdint.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
syscall.h.in remove legacy clock_gettime and gettimeofday from public syscall.h 2020-01-30 11:25:07 -05:00
termios.h fix conflicting mips and powerpc definitions for TIOCSER_TEMT macro 2019-07-10 17:09:49 -04:00
user.h add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00