From patchwork Tue May 29 19:41:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 922340 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 40wPLN2gZ8z9s08 for ; Wed, 30 May 2018 05:44:12 +1000 (AEST) Received: from localhost ([::1]:34680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNkXR-0005Ed-Ui for incoming@patchwork.ozlabs.org; Tue, 29 May 2018 15:44:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNkVp-0004Fc-5E for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNkVm-0000Tw-7J for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:29 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:41915) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNkVl-0000Rp-UV for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:26 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LckSJ-1g4kNK3GAJ-00k74p; Tue, 29 May 2018 21:42:17 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 21:41:58 +0200 Message-Id: <20180529194207.31503-7-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180529194207.31503-1-laurent@vivier.eu> References: <20180529194207.31503-1-laurent@vivier.eu> X-Provags-ID: V03:K1:xdxpT89UfiuDwW+Rv9Ki8OdXMVapniD9VOOlzNBIldQuFZ4tgzU mRn+793j9gOVdyHZa7zw74UYBNs9krQQLFo6g+ms/E6yIPo8mzteG0L5zceSCPcGK85v+cu /AVmD1rdVbRBItEJxlS9Uug7NAzqmQ++UJGx94Whae+VX96Qia15ICQKwXJD+8qRV/ng9dL udd+Jg69FyiMMiF2701Ow== X-UI-Out-Filterresults: notjunk:1; V01:K0:DE9sFbkRVrA=:DAIWZeSMhCzqKztDbDia/X dqkdKnsJzccfg8RWObpKxQBuN0+4hUATvBoQrpHU7phNVETYLFunEhk/zrNqEy32pcCKA1jTu RNznqk/+IKNUJoL+zfyCdZcowelgcxycC1IYn7XwyGx+1M1bhnoPTFH9m4jDmGd1CYpvGCekg MFnNL16SaUbL+AZwisxox3RAChP2ZRAM++vEYpCwNibgToHsF7ebtutm9qrRXFye9rL8LWWZ7 VsBnBapLU8qp8OhgJblMcTIGkFQHenEInqhRtWPdOVBJQDkGPtO9LDK0eK9+S4mCLNA6xj5EA xsKTsd+kHneBYsp14v3dJJq+30yJyejowPUdbCKYBySAbcPUqwJTmMlapAkFcP9Imn5naKcEu +W80niUYKj/tNsK6dtDKOerZNqKLbGfdySWQh5YlMNYMMM3ogZjAalQmXCR/6DjacmSl0LABj VMdzvnP10K5PL/oOZO0ODkZOwLo03120o6osK9Ql/ugUrUN8OWqipoXQl0s5jj/Y+xdKaXhqJ 9CFVDabl40RkazD6+ldX5mSgig6seXDLMlv1LIXZSiBxPZZCIBeEnyRAE8Mvub6UqxZRk+CU1 +Dz7OVuNhhzGA293DsgqcHpxpjegDEx+/KKgM9ZiWHOX0ugue06+OvE7rEtSQ+gFYEXUez1OY JiDUmy9dgdMAPz6Fv1mJD2fZ2kce+i3Rb1rMvUOcEbLD2bnEY4h+nZAmngqEUsjCUjrQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.134 Subject: [Qemu-devel] [PATCH 06/15] 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 , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" No code change. Signed-off-by: Laurent Vivier --- 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 */