qemu-e2k/linux-user
Petar Jovanovic 40508bb424 linux-user: change do_semop to return target errno when unsuccessful
do_semop() is called from two places, and one of these fails to convert
return error to target errno when semop fails. This patch changes the
function to always return target errno in case of an unsuccessful call.

Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-04-19 11:42:03 +02:00
..
alpha alpha-linux-user: Fix sigaltstack structure definition 2012-10-12 14:01:04 +03:00
arm fpu: move public header file to include/fpu 2012-12-19 08:32:46 +01:00
cris janitor: add guards to headers 2012-12-19 08:31:31 +01:00
i386 linux-user: Merge pread/pwrite into pread64/pwrite64 2012-12-08 18:49:30 +00:00
m68k
microblaze janitor: add guards to headers 2012-12-19 08:31:31 +01:00
mips
mips64 mipsn32-linux-user: Configure the architecture properly 2013-03-05 15:04:20 +01:00
openrisc
ppc
s390x target-s390: Reorg exception handling 2013-01-05 12:00:28 -08:00
sh4
sparc linux-user: Add more sparc syscall numbers 2013-03-11 13:05:14 +02:00
sparc64
unicore32 linux-user: Merge pread/pwrite into pread64/pwrite64 2012-12-08 18:49:30 +00:00
x86_64
cpu-uname.c
cpu-uname.h
elfload.c elfload: use abi_llong/ullong instead of target_llong/ullong 2013-04-18 14:12:31 +02:00
errno_defs.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c linux-user: If loading fails, print error as string, not number 2012-10-12 14:25:56 +03:00
m68k-sim.c
main.c linux-user: Fix layout of usage table to account for option text 2013-03-11 14:33:42 +02:00
Makefile.objs
mmap.c
qemu.h linux-user: Restore cast to target type in get_user() 2013-02-06 16:37:39 -06:00
signal.c mips-linux-user: Save and restore fpu and dsp from sigcontext 2013-03-05 11:58:48 +01:00
socket.h linux-user: Add Alpha socket constants 2013-03-11 13:04:44 +02:00
strace.c linux-user: Don't omit comma for strace of rt_sigaction() 2013-04-05 14:40:54 +02:00
strace.list linux-user: Merge pread/pwrite into pread64/pwrite64 2012-12-08 18:49:30 +00:00
syscall_defs.h alpha-linux-user: Translate fcntl l_type 2013-01-16 08:13:17 -08:00
syscall_types.h
syscall.c linux-user: change do_semop to return target errno when unsuccessful 2013-04-19 11:42:03 +02:00
target_flat.h
uaccess.c
vm86.c