From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sau1a-0007C1-Ms for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sau1Z-00017R-2x for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:10 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:39660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sau1Y-0000wh-Nq for qemu-devel@nongnu.org; Sat, 02 Jun 2012 15:30:09 -0400 Received: by mail-pz0-f45.google.com with SMTP id v2so4554023dad.4 for ; Sat, 02 Jun 2012 12:30:07 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sat, 2 Jun 2012 12:29:57 -0700 Message-Id: <1338665397-20917-7-git-send-email-rth@twiddle.net> In-Reply-To: <1338665397-20917-1-git-send-email-rth@twiddle.net> References: <1338665397-20917-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 6/6] linux-user: Translate pipe2 flags; add to strace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio Signed-off-by: Richard Henderson --- 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