linux-user: fixed getsockopt() optlen
commitfe54b24930f94bdfbc3d38eccd7adedf35f2f26f
authorPavel Zbitskiy <pavel.zbitskiy@gmail.com>
Sat, 11 Jan 2014 09:34:10 +0000 (11 13:34 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 15 Jan 2014 19:36:03 +0000 (15 23:36 +0400)
tree8b81110f8b419a23ddcfdafa4d776dad6a99055f
parent19a894ba777fa45c6f89ae007570311384204a69
linux-user: fixed getsockopt() optlen

optlen parameter of getsockopt() of type socklen_t* was read into
variable of type socklen_t, that caused zeroing out of upper 4 bytes
when running s390x on top of x86_64. This patch changes optlen type
to abi_ulong.

Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c