From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Cc: Riku Voipio <riku.voipio@iki.fi>
Subject: [Qemu-devel] [PATCH 6/6] linux-user: Translate pipe2 flags; add to strace
Date: Sat, 2 Jun 2012 12:29:57 -0700 [thread overview]
Message-ID: <1338665397-20917-7-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1338665397-20917-1-git-send-email-rth@twiddle.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
linux-user/strace.list | 3 +++
linux-user/syscall.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/linux-user/strace.list b/linux-user/strace.list
index a7eeaef..af3c6a0 100644
--- a/linux-user/strace.list
+++ b/linux-user/strace.list
@@ -1527,3 +1527,6 @@
#ifdef TARGET_NR_sync_file_range2
{ TARGET_NR_sync_file_range2, "sync_file_range2", NULL, NULL, NULL },
#endif
+#ifdef TARGET_NR_pipe2
+{ TARGET_NR_pipe2, "pipe2", NULL, NULL, NULL },
+#endif
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 40b2e3b..705bf47 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -5592,7 +5592,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
break;
#ifdef TARGET_NR_pipe2
case TARGET_NR_pipe2:
- ret = do_pipe(cpu_env, arg1, arg2, 1);
+ ret = do_pipe(cpu_env, arg1,
+ target_to_host_bitmask(arg2, fcntl_flags_tbl), 1);
break;
#endif
case TARGET_NR_times:
--
1.7.7.6
prev parent reply other threads:[~2012-06-02 19:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 19:29 [Qemu-devel] [PATCH v2 0/6] {alpha-}linux-user improvments Richard Henderson
2012-06-02 19:29 ` [Qemu-devel] [PATCH 1/6] alpha-linux-user: Fix signal handling Richard Henderson
2012-06-02 19:29 ` [Qemu-devel] [PATCH 2/6] alpha-linux-user: Work around hosted mmap allocation problems Richard Henderson
2012-06-02 19:29 ` [Qemu-devel] [PATCH 3/6] alpha-linux-user: Handle TARGET_SSI_IEEE_RAISE_EXCEPTION properly Richard Henderson
2012-06-02 19:29 ` [Qemu-devel] [PATCH 4/6] linux-user: Handle O_SYNC, O_NOATIME, O_CLOEXEC, O_PATH Richard Henderson
2012-06-02 19:29 ` [Qemu-devel] [PATCH 5/6] linux-user: Allocate the right amount of space for non-fixed file maps Richard Henderson
2012-06-02 19:29 ` Richard Henderson [this message]
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=1338665397-20917-7-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/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).