mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 18:55:23 +00:00
5a105f19b5
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. |
||
---|---|---|
.. | ||
alltypes.h.in | ||
errno.h | ||
fcntl.h | ||
fenv.h | ||
float.h | ||
hwcap.h | ||
ioctl.h | ||
ipcstat.h | ||
mman.h | ||
msg.h | ||
poll.h | ||
posix.h | ||
ptrace.h | ||
reg.h | ||
resource.h | ||
sem.h | ||
setjmp.h | ||
shm.h | ||
signal.h | ||
socket.h | ||
stat.h | ||
statfs.h | ||
stdint.h | ||
syscall.h.in | ||
termios.h | ||
user.h |