mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
linux-user: Protect more syscalls
New y2038 safe 32-bit architectures (like RISC-V) don't support old syscalls with a 32-bit time_t. The kernel defines new *_time64 versions of these syscalls. Add some more #ifdefs to syscall.c in linux-user to allow us to compile without these old syscalls. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <9ffc3cc6226756895157f16622be5f6edfa2aee6.1584051142.git.alistair.francis@wdc.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
aab613fb95
commit
859e8a89be
2 changed files with 68 additions and 2 deletions
|
@ -781,6 +781,7 @@ print_syscall_ret_newselect(const struct syscallname *name, abi_long ret)
|
|||
#define TARGET_TIME_OOP 3 /* leap second in progress */
|
||||
#define TARGET_TIME_WAIT 4 /* leap second has occurred */
|
||||
#define TARGET_TIME_ERROR 5 /* clock not synchronized */
|
||||
#ifdef TARGET_NR_adjtimex
|
||||
static void
|
||||
print_syscall_ret_adjtimex(const struct syscallname *name, abi_long ret)
|
||||
{
|
||||
|
@ -819,6 +820,7 @@ print_syscall_ret_adjtimex(const struct syscallname *name, abi_long ret)
|
|||
|
||||
qemu_log("\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
UNUSED static struct flags access_flags[] = {
|
||||
FLAG_GENERIC(F_OK),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue