qemu-e2k/linux-user
Andreas Schwab ba584f1de3 linux-user: don't short-circuit read with zero length
A zero-length read still needs to do the usual checks, thus it may return
errors like EBADF.  This makes the read syscall emulation consistent with
the pread64 syscall emulation.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <mvm5zsxz2we.fsf@suse.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2019-03-07 10:57:29 +01:00
..
aarch64 linux-user: Implement PR_PAC_RESET_KEYS 2019-02-05 16:52:39 +00:00
alpha linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
arm linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
cris linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
generic
host linux-user: Add safe_syscall for riscv64 host 2018-12-26 06:40:02 +11:00
hppa linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
i386 linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
m68k target/m68k: Fix LGPL information in the file headers 2019-01-30 14:20:13 +01:00
microblaze linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
mips target/mips: reimplement SC instruction emulation and use cmpxchg 2019-02-14 17:47:28 +01:00
mips64
nios2 Fix breakpoint support in Nios II user-mode emulation. 2019-03-07 10:57:29 +01:00
openrisc linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
ppc target/ppc: move FP and VMX registers into aligned vsr register array 2019-01-09 09:28:14 +11:00
riscv RISC-V: Use riscv prefix consistently on cpu helpers 2019-02-11 15:56:21 -08:00
s390x s390x: Fix the confusing contributions-after-2012 license statements 2019-02-18 11:25:43 +01:00
sh4 linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
sparc linux-user/sparc/signal.c: Remove dead code 2018-11-15 13:06:40 +00:00
sparc64
tilegx
x86_64 remove space-tab sequences 2019-01-11 15:46:55 +01:00
xtensa linux-user: Don't call gdb_handlesig() before queue_signal() 2018-11-12 15:48:00 +01:00
cpu_loop-common.h
elfload.c linux-user: Fix ELF_PLATFORM for aarch64_be-linux-user 2019-03-07 10:57:29 +01:00
errno_defs.h
exit.c
fd-trans.c linux-user: add new netlink types 2019-02-07 14:11:19 +01:00
fd-trans.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
m68k-sim.c
main.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
Makefile.objs
mmap.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
qemu.h linux-user: Fix compilation with clang 3.4 2019-01-22 06:26:31 +01:00
safe-syscall.S
signal-common.h
signal.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
socket.h
strace.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
strace.list
syscall_defs.h remove space-tab sequences 2019-01-11 15:46:55 +01:00
syscall_types.h
syscall.c linux-user: don't short-circuit read with zero length 2019-03-07 10:57:29 +01:00
target_flat.h
trace-events
uaccess.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
uname.c
uname.h
vm86.c avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00