commit | 62dc90c668fc4e17639f594b70a1001780f59a9b | [log] [tgz] |
---|---|---|
author | Michael Tokarev <mjt@tls.msk.ru> | Fri Jan 17 14:23:51 2014 +0400 |
committer | Michael Tokarev <mjt@tls.msk.ru> | Sat Feb 15 16:10:25 2014 +0400 |
tree | 0515935251b1decee814c2090d8e3680eefc170d | |
parent | 21684af0233df1d2b554db736e4feb774950d488 [diff] |
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>