From patchwork Mon Jun 4 15:20:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 925103 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40zzP9619Lz9s0w for ; Tue, 5 Jun 2018 01:29:01 +1000 (AEST) Received: from localhost ([::1]:40379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrPn-0000zG-Dc for incoming@patchwork.ozlabs.org; Mon, 04 Jun 2018 11:28:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPrHw-0002Fp-C8 for qemu-devel@nongnu.org; Mon, 04 Jun 2018 11:20:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPrHt-00064U-1c for qemu-devel@nongnu.org; Mon, 04 Jun 2018 11:20:52 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:38381) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPrHs-000634-Oa for qemu-devel@nongnu.org; Mon, 04 Jun 2018 11:20:48 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LfLHp-1g5Wm20BVB-00p8C6; Mon, 04 Jun 2018 17:20:35 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Mon, 4 Jun 2018 17:20:06 +0200 Message-Id: <20180604152015.13359-9-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180604152015.13359-1-laurent@vivier.eu> References: <20180604152015.13359-1-laurent@vivier.eu> X-Provags-ID: V03:K1:aEPF7CYnF97Dr0M1chGcxiSItSDOkGVw7B7R9my+lvK7yGBGVmF 1l5fFuxawerzUf6Sbja1+4R/IjCdNbFRZtDVqZ92FmvzvfO/Lyq3AczFo2pjXW1zJ1mtAb1 DidRJlgs63xIdQ/a5G7BTsnqWGbHeaC+VNy/lp80TGlnk6lLhd7r7+hel22pAp4TSG2ieVJ ebqmvip2dLtOfROfo8tPA== X-UI-Out-Filterresults: notjunk:1; V01:K0:cLlnJl87TZQ=:O6SPVt/rEV7A8TWaxORTYF GvD8Tx+SJZj7mzDfWBJW5/QIg9tyN3Lk6pvaQvAg70qM0R/eNUes9dU/L/dmJro8Tvvgdct8g 6MAgkQypIIPiAwjtd4g29YbxIESw91WDpvFs1aghnyHJ+s0SAUSFs8TPwZV575ss5AawcnsYo 5UtilFCD+eVkJ10p3bYdO6RvtPkPpxOGQhx0nA3JBEd0CtD/iBEvOYpRhF4gddxqJzXZxyBnt b1t6i7Cur9hAmMrihGYfoX1lI5IWthTAXIvnrdQ11yxpFw38pmENfOXW5ca+LiWZMrf0RFIeC Ost8ZSieIr9bG9Ih7HabkJKn+gjKyZboL7J8XDIjJOGrFieyU67fvsEZGpjx4KPD4w4dKXHhR yzUGMzNU0lRjXg2pT/vYQmY3tJXYhLBiRmvQlYnlwDq1aesJsTzDN8GuoiJlyg/NkKN73f6hH sb6TwTgzuIJxIzdDUzQepO2ZLytxGZQ2GVi6l3dA5bf2/htSi8/1MKY+1U54m1UdCf9q6paJJ UjMfoyUPPottyQsYBVGQ0pkIH+coiQ465NhWNg5qhkWtZpAv4v3qp1zAe/b0iGXuQdtkONOhn dXzvWWrD3aXDUdb5w1twVra8CxyLwEqNPTnchftTRqVGELhQQVl37gex96eAstmGfuFEvg1JE aHpQ8zK/J2lZkFma6ET4ND2TevjkF6OvoS7NZGsAJjVJyaGUt71bm8rbncz7OZXVp6y8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.135 Subject: [Qemu-devel] [PULL 08/17] linux-user: move ppc fcntl definitions to ppc/target_fcntl.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Mark Cave-Ayland , Laurent Vivier , Artyom Tarasenko Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" No code change. Signed-off-by: Laurent Vivier Message-Id: <20180529194207.31503-7-laurent@vivier.eu> --- linux-user/ppc/target_fcntl.h | 6 ++++++ linux-user/syscall_defs.h | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/linux-user/ppc/target_fcntl.h b/linux-user/ppc/target_fcntl.h index 627d547289..d74ab710cf 100644 --- a/linux-user/ppc/target_fcntl.h +++ b/linux-user/ppc/target_fcntl.h @@ -7,5 +7,11 @@ #ifndef PPC_TARGET_FCNTL_H #define PPC_TARGET_FCNTL_H + +#define TARGET_O_DIRECTORY 040000 /* must be a directory */ +#define TARGET_O_NOFOLLOW 0100000 /* don't follow links */ +#define TARGET_O_LARGEFILE 0200000 +#define TARGET_O_DIRECT 0400000 /* direct disk access hint */ + #include "../generic/fcntl.h" #endif diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 44a590d2c9..a434edadf8 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2426,12 +2426,7 @@ struct target_statfs64 { #define TARGET_F_GETPIPE_SZ (TARGET_F_LINUX_SPECIFIC_BASE + 8) #define TARGET_F_NOTIFY (TARGET_F_LINUX_SPECIFIC_BASE+2) -#if defined (TARGET_PPC) -#define TARGET_O_DIRECTORY 040000 /* must be a directory */ -#define TARGET_O_NOFOLLOW 0100000 /* don't follow links */ -#define TARGET_O_LARGEFILE 0200000 -#define TARGET_O_DIRECT 0400000 /* direct disk access hint */ -#elif defined (TARGET_SPARC) +#if defined (TARGET_SPARC) #define TARGET_O_APPEND 0x0008 #define TARGET_FASYNC 0x0040 /* fcntl, for BSD compatibility */ #define TARGET_O_CREAT 0x0200 /* not fcntl */