From: vibi sreenivasan <vibi_sreenivasan@cms.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 01/02] linux-user : add splice system call
Date: Sun, 24 May 2009 13:33:05 +0530 [thread overview]
Message-ID: <1243152185.2111.5.camel@system> (raw)
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
reply other threads:[~2009-05-24 13:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1243152185.2111.5.camel@system \
--to=vibi_sreenivasan@cms.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).