qemu-irix/linux-user
Jamie Lentin f3b974cd3b linux-user: Translate getsockopt level option
n setsockopt, the socket level options are translated to the hosts'
architecture before the real syscall is called, e.g.
TARGET_SO_TYPE -> SO_TYPE. This patch does the same with getsockopt.

Tested on a x86 host emulating MIPS.  Without it:-

$ grep getsockopt host.strace
31311 getsockopt(3, SOL_SOCKET, 0x1007 /* SO_??? */, 0xbff17208,
0xbff17204) = -1 ENOPROTOOPT (Protocol not available)

With:-

$ grep getsockopt host.strace
25706 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0

Whitespace cleanup: Riku Voipio

Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
2010-12-03 15:09:39 +02:00
..
alpha
arm
cris
i386
m68k
microblaze
mips
mips64
mipsn32
ppc
sh4
sparc
sparc64
x86_64
cpu-uname.c
cpu-uname.h
elfload.c linux-user: Protect against allocation failure in load_symbols. 2010-07-29 20:54:35 +04:00
errno_defs.h
flat.h
flatload.c linux-user: improve flatload error checking 2010-09-18 05:53:14 +00:00
ioctls.h
linux_loop.h
linuxload.c linux-user: Reduce lseek+reads while loading elf files. 2010-07-29 08:32:28 +02:00
m68k-sim.c linux-user: Fix typo m86k -> m68k 2010-10-05 13:53:56 -05:00
main.c linux-user: fix memory leaks with NPTL emulation 2010-12-03 15:09:38 +02:00
mmap.c linux-user: mmap_reserve() not controlled by RESERVED_VA 2010-12-03 15:09:38 +02:00
qemu-types.h
qemu.h linux-user: remove unnecessary local from __get_user(), __put_user() 2010-12-03 15:09:38 +02:00
signal.c microblaze: target-ify target_ucontext 2010-11-23 10:04:30 +01:00
socket.h
strace.c
strace.list
syscall.c linux-user: Translate getsockopt level option 2010-12-03 15:09:39 +02:00
syscall_defs.h microblaze: Fix the target version of stat64 struct 2010-08-09 10:13:33 +02:00
syscall_types.h
uaccess.c
vm86.c