qemu/linux-user
Daniel P. Berrangé 6d5d5dde9a linux-user: fix to handle variably sized SIOCGSTAMP with new kernels
The SIOCGSTAMP symbol was previously defined in the
asm-generic/sockios.h header file. QEMU sees that header
indirectly via sys/socket.h

In linux kernel commit 0768e17073dc527ccd18ed5f96ce85f9985e9115
the asm-generic/sockios.h header no longer defines SIOCGSTAMP.
Instead it provides only SIOCGSTAMP_OLD, which only uses a
32-bit time_t on 32-bit architectures.

The linux/sockios.h header then defines SIOCGSTAMP using
either SIOCGSTAMP_OLD or SIOCGSTAMP_NEW as appropriate. If
SIOCGSTAMP_NEW is used, then the tv_sec field is 64-bit even
on 32-bit architectures

To cope with this we must now convert the old and new type from
the target to the host one.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Message-Id: <20190718130641.15294-1-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2019-07-19 09:33:55 +02:00
..
aarch64
alpha
arm semihosting: split console_out into string and char versions 2019-06-12 17:53:22 +01:00
cris
generic linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK 2019-07-02 16:56:46 +02:00
host
hppa
i386
m68k linux-user/m68k: remove simulator syscall interface 2019-06-26 17:14:41 +02:00
microblaze
mips linux-user: Fix structure target_ucontext for MIPS 2019-07-16 18:37:13 +02:00
mips64
nios2
openrisc
ppc linux-user: set default PPC64 CPU 2019-06-24 23:10:36 +02:00
riscv RISC-V: Update syscall list for 32-bit support. 2019-06-25 22:37:08 -07:00
s390x
sh4
sparc
sparc64
tilegx
x86_64
xtensa
Makefile.objs linux-user/m68k: remove simulator syscall interface 2019-06-26 17:14:41 +02:00
cpu_loop-common.h
elfload.c linux-user: update PPC64 HWCAP2 feature list 2019-06-24 23:10:07 +02:00
errno_defs.h
exit.c
fd-trans.c linux-user: move QEMU_IFLA_BR_MULTI_BOOLOPT to the good function 2019-07-02 16:56:46 +02:00
fd-trans.h
flat.h
flatload.c
ioctls.h linux-user: fix to handle variably sized SIOCGSTAMP with new kernels 2019-07-19 09:33:55 +02:00
linux_loop.h
linuxload.c
main.c
mmap.c
qemu.h linux-user: check valid address in access_ok() 2019-07-18 13:57:28 +02:00
safe-syscall.S
signal-common.h
signal.c
socket.h
strace.c linux-user: Add support for strace for statx() syscall 2019-07-02 16:56:46 +02:00
strace.list linux-user: Add support for strace for statx() syscall 2019-07-02 16:56:46 +02:00
syscall.c linux-user: fix to handle variably sized SIOCGSTAMP with new kernels 2019-07-19 09:33:55 +02:00
syscall_defs.h linux-user: fix to handle variably sized SIOCGSTAMP with new kernels 2019-07-19 09:33:55 +02:00
syscall_types.h linux-user: fix to handle variably sized SIOCGSTAMP with new kernels 2019-07-19 09:33:55 +02:00
target_flat.h
trace-events
uaccess.c
uname.c
uname.h
vm86.c