qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 01/02] linux-user : add splice system call
@ 2009-05-24  8:03 vibi sreenivasan
  0 siblings, 0 replies; only message in thread
From: vibi sreenivasan @ 2009-05-24  8:03 UTC (permalink / raw)
  To: qemu-devel


linux-user : add splice system call

Signed-off-by: vibi sreenivasan <vibi_sreenivasan@cms.com>

---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-24 13:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-24  8:03 [Qemu-devel] [PATCH 01/02] linux-user : add splice system call vibi sreenivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).