From patchwork Wed Jul 25 22:10:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 173303 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B47992C0085 for ; Thu, 26 Jul 2012 08:53:52 +1000 (EST) Received: from localhost ([::1]:52351 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su9nx-0001DT-46 for incoming@patchwork.ozlabs.org; Wed, 25 Jul 2012 18:11:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su9nD-0007qX-M2 for qemu-devel@nongnu.org; Wed, 25 Jul 2012 18:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Su9nB-00013P-Mh for qemu-devel@nongnu.org; Wed, 25 Jul 2012 18:10:55 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:44694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su9nB-00010i-HD for qemu-devel@nongnu.org; Wed, 25 Jul 2012 18:10:53 -0400 Received: by mail-pb0-f45.google.com with SMTP id ro12so2018027pbb.4 for ; Wed, 25 Jul 2012 15:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=3O/LAKnctokxsbVR1Q60BcwSbtioQ5rUy6sSfUP1efI=; b=mZ9drcFu1CQGXa4YlPfXDd48MbERcVP0TDlEeucuj8NfFJzgiZ7j90500UB+rxL8AT pT9V5Oz0uXI5JzW/O7iiO3kVpGO/WjAF6ASuFtYpnSEFZxGL76/fLLXN6Dv1jMNSJ6Ch qSPpLFAxp78BMAK3Uk5036oSbs4iD/U17v8wA2NMHN/eJ8jX+/JThh+Vts2Y8aUiP7Zl tXjqdmswJHRFMWAIu11V9zoB7xn1vfKMNjob34cNd3OHdQdrNLuqlFAuOZlsd0uX2bGv 1a2Q/Tuu9VxSXK3zlvOnIINsFVYFMa7zbrs55ko1nQ18g5wN01MtBWuqddp3pBD3Xx1l m4EQ== Received: by 10.68.193.196 with SMTP id hq4mr15564833pbc.76.1343254253239; Wed, 25 Jul 2012 15:10:53 -0700 (PDT) Received: from anchor.twiddle.home.com ([173.160.232.49]) by mx.google.com with ESMTPS id oo6sm15136761pbc.22.2012.07.25.15.10.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jul 2012 15:10:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 25 Jul 2012 15:10:35 -0700 Message-Id: <1343254238-4727-8-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1343254238-4727-1-git-send-email-rth@twiddle.net> References: <1343254238-4727-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.45 Cc: riku.voipio@iki.fi Subject: [Qemu-devel] [PATCH 07/10] linux-user: Translate pipe2 flags; add to strace X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- 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 8a454cc..1a12f14 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5595,7 +5595,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: