]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/syscall: Add support for clock_gettime64/clock_settime64
authorAlistair Francis <alistair.francis@wdc.com>
Thu, 12 Mar 2020 22:13:53 +0000 (15:13 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 20 Mar 2020 15:01:59 +0000 (16:01 +0100)
commitc6c8d1026e7555097c1b01b2c701593f7b2c6602
tree92f87c5bc6272415019bca6ceaac697845217b8f
parent859e8a89bede1ba1bdc2dda7a76a861e63cfd49f
linux-user/syscall: Add support for clock_gettime64/clock_settime64

Add support for the clock_gettime64/clock_settime64 syscalls.

If your host is 64-bit or is 32-bit with the *_time64 syscall then the
timespec will correctly be a 64-bit time_t. Otherwise the host will
return a 32-bit time_t which will be rounded to 64-bits. This will be
incorrect after y2038.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <4a7fd05532400d10aa0f684c9043e2ac7b34d91c.1584051142.git.alistair.francis@wdc.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c