[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/02] linux-user : add splice system call
From: |
vibi sreenivasan |
Subject: |
[Qemu-devel] [PATCH 01/02] linux-user : add splice system call |
Date: |
Sun, 24 May 2009 13:33:05 +0530 |
linux-user : add splice system call
Signed-off-by: vibi sreenivasan <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 01/02] linux-user : add splice system call,
vibi sreenivasan <=