]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: refactor do_socketcall()
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 17 Jan 2014 10:23:51 +0000 (14:23 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 15 Feb 2014 12:10:25 +0000 (16:10 +0400)
commit62dc90c668fc4e17639f594b70a1001780f59a9b
tree0515935251b1decee814c2090d8e3680eefc170d
parent21684af0233df1d2b554db736e4feb774950d488
linux-user: refactor do_socketcall()

Refactor do_socketcall() to do argument conversion/checking first,
according to a lookup table (which call has how many args) and
by calling the right function second with ready-to-go arguments.

This ensures that all arguments are handled as abi_long, according
to socketcall prototype, and simplifies argument handling alot too.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c