From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8DRD-0003Cd-5O for qemu-devel@nongnu.org; Sun, 24 May 2009 09:08:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8DR9-0003Af-Hy for qemu-devel@nongnu.org; Sun, 24 May 2009 09:08:26 -0400 Received: from [199.232.76.173] (port=33933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8DEG-0005fh-2b for qemu-devel@nongnu.org; Sun, 24 May 2009 08:55:04 -0400 Received: from mailgw3.cms.com ([202.75.200.223]:28265 helo=cms.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M88wy-0006yu-1r for qemu-devel@nongnu.org; Sun, 24 May 2009 04:20:57 -0400 Subject: [Qemu-devel] [PATCH 01/02] linux-user : add splice system call From: vibi sreenivasan Content-Type: text/plain Date: Sun, 24 May 2009 13:33:05 +0530 Message-Id: <1243152185.2111.5.camel@system> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Resent-Message-Id: Reply-To: vibi_sreenivasan@cms.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org linux-user : add splice system call Signed-off-by: vibi sreenivasan --- linux-user/syscall.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b58220d..dc726ad 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -6580,6 +6580,24 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #endif +#ifdef TARGET_NR_splice + case TARGET_NR_splice: + { + long long int loff_in, loff_out; + long long int *ploff_in = NULL, *ploff_out = NULL; + if(arg2) { + get_user_u64(loff_in, arg2); + ploff_in = &loff_in; + } + if(arg4) { + get_user_u64(loff_out, arg2); + ploff_out = &loff_out; + } + ret = get_errno(splice(arg1, ploff_in, arg3, ploff_out, arg5, arg6)); + } + break; +#endif + default: unimplemented: gemu_log("qemu: Unsupported syscall: %d\n", num); -- 1.6.0