From patchwork Tue May 29 19:41:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 922338 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 40wPKB1J6Vz9s08 for ; Wed, 30 May 2018 05:43:10 +1000 (AEST) Received: from localhost ([::1]:34672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNkWR-0004Gz-Nj for incoming@patchwork.ozlabs.org; Tue, 29 May 2018 15:43:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNkVn-0004Ei-Vl for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNkVk-0000R8-UR for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:28 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:42191) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNkVk-0000PB-L9 for qemu-devel@nongnu.org; Tue, 29 May 2018 15:42:24 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LsMbE-1gL2Cs2c9o-0124Ea; Tue, 29 May 2018 21:42:14 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 21:41:52 +0200 Message-Id: <20180529194207.31503-1-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 X-Provags-ID: V03:K1:t5EyLeYlJ852Qj9w4bf49KVq1aZdrN/SOR/J3fqbjeKCfwGYcKy W7nqcKxwsh5FT8Kqz0KDW5hLbsoRanJzPIEQ2dp4Fh0797Mc70YBwcYXVGD9UVQXS3j+If7 +4AiuYHvvc7OBMIxpeF7t2MmtjCd9NSer6vbiNhw8/HGrinWl8CiLNIvfGeJ3tH/pt+oK2L u4gh5J7kD+qytNsVO7XNQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:AKqWAieDqkY=:P2MA/nPdm7uyqyNbwZBgWn h6BGAkW/BtZ+ufbFsTjwPsoxhYeDhyhz91YkOvr4PRfqcyP5oIN5PrBYF9f2lfK8wXpXPB8SB 6N8K8V6AwTLxTJa9SLXTngxNfl/UCfo3r7hfH8NWsoLV5kUmud5CkpnjSGc6ci2ktv8ufHEVu UhDMZyKv3Vmxw7aFk8INK3WyoQeQD8Ex39sWmeo41gmSzg0/dUNgSCYOdIhvI63ffWAgGATeF C7WO9BrlIVDgsc+6Kx1mnwzhIwk1dBqylR1srQB63u/a5rz5LUHhNfYQigBjo6KXU4Y9zpmsJ cRvvjE54zDV1e6nCd0UozufHX5ZHS/QBUb4BP3iHK23Q5GHUVJeV35QhRssOxcpOq6jmwhq/J OjhZ9ALwUKEH2Lylx71TpOeZazwIxJ+x3p4WPKxRgB0jufnS0hnfIgAwWhZ+/jPCFjH7nji4L kAi9nrSmxtbrodSTUgLRhWo1wvSgAzGjEWg2dXd7s/Yryk+ATdXInzYR+05XFOnyYff3Z6dTT bElRsea6h/KKMC9F5H+KHymmvKneT6TneIc4eR/YK5vmgKIn1480p4tFghvhOH1ZkEJ4K4lbl SZ5vPrroOrcpoZzFrDtrXn3czhIZ6kr3uS73zCcaHOVzkTFLi3zwD2i/3zxLbPP3X6gNiy3ti WmQEzaMI/TIiIQA8Ax5VBOAUCGZ5aTgLezRlzuvnRuV0OgROpJyJscUs3feFLvn/hVA0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.126.131 Subject: [Qemu-devel] [PATCH 00/15] linux-user: move more definitions out of syscall_defs.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" Move fcntl.h definitions to target directories. Introduce a generic header for the targets without specific definitions. Move more signal.h definitions to target directories. Laurent Vivier (15): linux-user: move generic fcntl definitions to generic/fcntl.h linux-user: move alpha fcntl definitions to alpha/target_fcntl.h linux-user: move hppa fcntl definitions to hppa/target_fcntl.h linux-user: move arm/aarch64/m68k fcntl definitions to [arm|aarch64|m68k]/target_fcntl.h linux-user: move mips/mips64 fcntl definitions to mips/target_fcntl.h linux-user: move ppc fcntl definitions to ppc/target_fcntl.h linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h linux-user: move get_sp_from_cpustate() to target_cpu.h linux-user: move generic signal definitions to generic/signal.h linux-user: move sparc signal definitions to sparc/target_signal.h linux-user: move mips signal definitions to mips/target_signal.h linux-user: move openrisc signal definitions to openrisc/target_signal.h linux-user: move alpha signal definitions to alpha/target_signal.h linux-user: move hppa signal definitions to hppa/target_signal.h linux-user: remove useless #if linux-user/aarch64/signal.c | 1 - linux-user/aarch64/target_cpu.h | 4 + linux-user/aarch64/target_fcntl.h | 16 + linux-user/aarch64/target_signal.h | 7 +- linux-user/alpha/signal.c | 1 - linux-user/alpha/target_cpu.h | 4 + linux-user/alpha/target_fcntl.h | 40 +++ linux-user/alpha/target_signal.h | 51 +++- linux-user/arm/signal.c | 1 - linux-user/arm/target_cpu.h | 4 + linux-user/arm/target_fcntl.h | 17 ++ linux-user/arm/target_signal.h | 7 +- linux-user/cris/signal.c | 1 - linux-user/cris/target_cpu.h | 4 + linux-user/cris/target_fcntl.h | 11 + linux-user/cris/target_signal.h | 7 +- linux-user/generic/fcntl.h | 151 ++++++++++ linux-user/generic/signal.h | 57 ++++ linux-user/hppa/signal.c | 1 - linux-user/hppa/target_cpu.h | 8 +- linux-user/hppa/target_fcntl.h | 42 +++ linux-user/hppa/target_signal.h | 50 +++- linux-user/i386/signal.c | 1 - linux-user/i386/target_cpu.h | 4 + linux-user/i386/target_fcntl.h | 11 + linux-user/i386/target_signal.h | 7 +- linux-user/m68k/signal.c | 1 - linux-user/m68k/target_cpu.h | 4 + linux-user/m68k/target_fcntl.h | 17 ++ linux-user/m68k/target_signal.h | 7 +- linux-user/microblaze/signal.c | 1 - linux-user/microblaze/target_cpu.h | 4 + linux-user/microblaze/target_fcntl.h | 11 + linux-user/microblaze/target_signal.h | 7 +- linux-user/mips/signal.c | 1 - linux-user/mips/target_cpu.h | 4 + linux-user/mips/target_fcntl.h | 38 +++ linux-user/mips/target_signal.h | 55 +++- linux-user/mips64/target_fcntl.h | 1 + linux-user/mips64/target_signal.h | 53 +++- linux-user/nios2/signal.c | 1 - linux-user/nios2/target_cpu.h | 4 + linux-user/nios2/target_fcntl.h | 11 + linux-user/nios2/target_signal.h | 8 +- linux-user/openrisc/signal.c | 1 - linux-user/openrisc/target_cpu.h | 4 + linux-user/openrisc/target_fcntl.h | 11 + linux-user/openrisc/target_signal.h | 16 +- linux-user/ppc/signal.c | 1 - linux-user/ppc/target_cpu.h | 5 +- linux-user/ppc/target_fcntl.h | 17 ++ linux-user/ppc/target_signal.h | 7 +- linux-user/qemu.h | 1 - linux-user/riscv/signal.c | 1 - linux-user/riscv/target_cpu.h | 4 + linux-user/riscv/target_fcntl.h | 11 + linux-user/riscv/target_signal.h | 8 +- linux-user/s390x/signal.c | 1 - linux-user/s390x/target_cpu.h | 4 + linux-user/s390x/target_fcntl.h | 11 + linux-user/s390x/target_signal.h | 7 +- linux-user/sh4/signal.c | 1 - linux-user/sh4/target_cpu.h | 4 + linux-user/sh4/target_fcntl.h | 11 + linux-user/sh4/target_signal.h | 7 +- linux-user/signal.c | 1 - linux-user/sparc/signal.c | 1 - linux-user/sparc/target_cpu.h | 11 + linux-user/sparc/target_fcntl.h | 45 +++ linux-user/sparc/target_signal.h | 60 +++- linux-user/sparc64/signal.c | 1 - linux-user/sparc64/target_fcntl.h | 1 + linux-user/sparc64/target_signal.h | 38 +-- linux-user/syscall_defs.h | 536 +--------------------------------- linux-user/tilegx/signal.c | 1 - linux-user/tilegx/target_cpu.h | 4 + linux-user/tilegx/target_fcntl.h | 11 + linux-user/tilegx/target_signal.h | 8 +- linux-user/x86_64/target_fcntl.h | 11 + linux-user/x86_64/target_signal.h | 8 +- linux-user/xtensa/signal.c | 1 - linux-user/xtensa/target_cpu.h | 4 + linux-user/xtensa/target_fcntl.h | 11 + linux-user/xtensa/target_signal.h | 8 +- 84 files changed, 909 insertions(+), 721 deletions(-) create mode 100644 linux-user/aarch64/target_fcntl.h create mode 100644 linux-user/alpha/target_fcntl.h create mode 100644 linux-user/arm/target_fcntl.h create mode 100644 linux-user/cris/target_fcntl.h create mode 100644 linux-user/generic/fcntl.h create mode 100644 linux-user/generic/signal.h create mode 100644 linux-user/hppa/target_fcntl.h create mode 100644 linux-user/i386/target_fcntl.h create mode 100644 linux-user/m68k/target_fcntl.h create mode 100644 linux-user/microblaze/target_fcntl.h create mode 100644 linux-user/mips/target_fcntl.h create mode 100644 linux-user/mips64/target_fcntl.h create mode 100644 linux-user/nios2/target_fcntl.h create mode 100644 linux-user/openrisc/target_fcntl.h create mode 100644 linux-user/ppc/target_fcntl.h create mode 100644 linux-user/riscv/target_fcntl.h create mode 100644 linux-user/s390x/target_fcntl.h create mode 100644 linux-user/sh4/target_fcntl.h create mode 100644 linux-user/sparc/target_fcntl.h create mode 100644 linux-user/sparc64/target_fcntl.h create mode 100644 linux-user/tilegx/target_fcntl.h create mode 100644 linux-user/x86_64/target_fcntl.h create mode 100644 linux-user/xtensa/target_fcntl.h Reviewed-by: Richard Henderson