Re: [Qemu-devel] [PATCH] qemu-user: Translate getsockopt level option

2010-12-01 Thread Peter Maydell
On 17 November 2010 12:30, Jamie Lentin wrote: > In 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. I agree that this is necessary (at least for MIPS; I

[Qemu-devel] [PATCH] qemu-user: Translate getsockopt level option

2010-11-17 Thread Jamie Lentin
In 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_