about summary refs log tree commit diff
path: root/arch/riscv64/syscall_arch.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-07-28 22:46:19 -0400
committerRich Felker <dalias@aerifal.cx>2019-07-29 00:19:21 -0400
commita02bd52864a21b46206eaf67e1e7fb53834b594a (patch)
tree73f8ce83ee8f5fc7dbe079f656ae0fb9b22aef34 /arch/riscv64/syscall_arch.h
parent4c307bed03d97da4cfd9224c5b7669bb22cd9faf (diff)
downloadmusl-a02bd52864a21b46206eaf67e1e7fb53834b594a.tar.gz
musl-a02bd52864a21b46206eaf67e1e7fb53834b594a.tar.xz
musl-a02bd52864a21b46206eaf67e1e7fb53834b594a.zip
timer_gettime: add time64 syscall support, decouple 32-bit time_t
the time64 syscall has to be used if time_t is 64-bit, since there's
no way of knowing before making a syscall whether the result will fit
in 32 bits, and the 32-bit syscalls do not report overflow as an
error.

on 64-bit archs, there is no change to the code after preprocessing.
on current 32-bit archs, the result is now read from the kernel
through long[4] array, then copied into the timespec, to remove the
assumption that time_t is the same as long.
Diffstat (limited to 'arch/riscv64/syscall_arch.h')
0 files changed, 0 insertions, 0 deletions