mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 11:45:13 +00:00
4c307bed03
the x32 syscall interfaces treat timespec's tv_nsec member as 64-bit
despite the API type being long and long being 32-bit in the ABI. this
is no problem for syscalls that store timespecs to userspace as
results, but caused uninitialized padding to be misinterpreted as the
high bits in syscalls that take timespecs as input.
since the beginning of the port, we've dealt with this situation with
hacks in syscall_arch.h, and injected between __syscall_cp_c and
__syscall_cp_asm, to special-case the syscall numbers that involve
timespecs as inputs and copy them to a form suitable to pass to the
kernel.
commit
|
||
---|---|---|
.. | ||
bits | ||
atomic_arch.h | ||
crt_arch.h | ||
ksigaction.h | ||
kstat.h | ||
pthread_arch.h | ||
reloc.h | ||
syscall_arch.h |