From patchwork Sat May 19 09:29:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 916795 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 40p0DW60xGz9s4n for ; Sat, 19 May 2018 19:31:55 +1000 (AEST) Received: from localhost ([::1]:42346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJyDQ-0008Tz-Qe for incoming@patchwork.ozlabs.org; Sat, 19 May 2018 05:31:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJyCX-0008SN-0f for qemu-devel@nongnu.org; Sat, 19 May 2018 05:30:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJyCT-0003Df-1v for qemu-devel@nongnu.org; Sat, 19 May 2018 05:30:57 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58271) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJyCS-0003CF-Oc for qemu-devel@nongnu.org; Sat, 19 May 2018 05:30:52 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MMWL8-1fBirV35Cw-008N6g; Sat, 19 May 2018 11:30:11 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Sat, 19 May 2018 11:29:48 +0200 Message-Id: <20180519092956.15134-1-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 X-Provags-ID: V03:K1:M+SKEwJPPp806L988qaf8CC5BYMDD2GegUmQRJAMYt6ZHUIEq2z GeoCizDLuQoEFYZ0lRdkbrxLScgQJ/OfSQ+Vs1Qt0AxCHIK9lq4sZ6iEhCMDKJIlWh8nNip fLi2gf0c9gwBuS0xcXL+JStomsvtc6buW4+wpIRhCAAdrcB51278hsmpmGIY1X8E2b8XBX1 a8W43hqj/23+whiw0hb/w== X-UI-Out-Filterresults: notjunk:1; V01:K0:29vELuFGtj8=:v9mdqMyAsKE50DRCkMcRDZ AOTgFbfBVlmSdPlL09Ycjrw9V0hho04USlQnmRI2kuZ+2HMe7UnM0QGbsFOKu4T4g4moyjbXL KEt/4H9mGszOVem54mZU1dLc8OtcMlGe9Ov+VEAxUAb/EcDIhQE9g0jwAMzz5QfHdKlp5jana GS5te7NMbv6HrfE7Iv0ro72uFm4Py+dqY/irehI4m8Pt84ExP94LbhMHSOObdGP/j/qVe1t1Q kzzqGhX2n3NIeK29PAFx2W+GoO0PAZfI5IFvxNcRChknywQU0GFwmj2Jd/9zwxWKwDyy1kD3+ 3pRoT5uZeJZHa4wjkZlb72cX2lz1/BAbILBPjXdq/bnBBgAJG8tqZZKT4b6uF80/rBtO0ZXk7 yomWTe4uvw74J7OcGWOcudRQaEvITad23Vh2fl0sRy+rSMZ5HoHIfk4raAuehIyNzrD+bAIzJ jIugh/meWR7aBeuoSxVzl4CMIqov8t2YeXyYDK7ZiCQX5Bbw/yGtPxY8GSZsI5HSBx23qXy6B oMN2HNX7KblBLnPNOHduT7w1iJemYCClAG9O+i+5um2kGSTLMrQ7fPDbOxUqPcpM35LITSuo2 DSqXReE9KmRdqrGE5hL6u/ofcfvj7JKBXLzDdeOvqNuQE7abSRbI2uqKFYEWAaZ5KzKUZf1n/ yz9ovTegtOD3IJ5y9ro+3oSBRLRcTvd6KlL2En0Km8p1QTvu8cnT3LdQ06nPp8Hc1xhMkROm7 cgfX7TUHnybia6Ry X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PATCH v3 0/8] linux-user: move socket.h definitions to CPU directories 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: Peter Maydell , Riku Voipio , Mark Cave-Ayland , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Yongbok Kim , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Splitting out socket.h definitions helps to read the code and to fix the bugs... No code change, except for the last one that ports definitions from linux for sparc as the values are not the correct ones. v3: - rework ppc/sockbits.h to include generic/sockbits.h and to redefine needed values only. - fix definition of TARGET_SOCK_NONBLOCK in linux-user/socket.h v2: - move generic socket.h to generic/sockbits.h and include this file from arch without specific values - for ppc, only define the values that differ and include generic/sockbits.h - update ARCH_HAS_SOCKET_TYPES use to be like in the kernel - define TARGET_SO_REUSEPORT Laurent Vivier (8): linux-user: move mips socket.h definitions to mips/sockbits.h linux-user: move alpha socket.h definitions to alpha/sockbits.h linux-user: move sparc/sparc64 socket.h definitions to sparc/sockbits.h linux-user: move socket.h generic definitions to generic/sockbits.h linux-user: move ppc socket.h definitions to ppc/sockbits.h linux-user: update ARCH_HAS_SOCKET_TYPES use linux-user: copy sparc/sockbits.h definitions from linux linux-user: define TARGET_SO_REUSEPORT linux-user/aarch64/sockbits.h | 1 + linux-user/alpha/sockbits.h | 83 +++++++++ linux-user/arm/sockbits.h | 1 + linux-user/cris/sockbits.h | 1 + linux-user/generic/sockbits.h | 58 ++++++ linux-user/hppa/sockbits.h | 33 +--- linux-user/i386/sockbits.h | 1 + linux-user/m68k/sockbits.h | 1 + linux-user/microblaze/sockbits.h | 1 + linux-user/mips/sockbits.h | 110 ++++++++++++ linux-user/mips64/sockbits.h | 1 + linux-user/nios2/sockbits.h | 1 + linux-user/openrisc/sockbits.h | 1 + linux-user/ppc/sockbits.h | 26 +++ linux-user/riscv/sockbits.h | 1 + linux-user/s390x/sockbits.h | 1 + linux-user/sh4/sockbits.h | 1 + linux-user/socket.h | 377 ++++----------------------------------- linux-user/sparc/sockbits.h | 111 ++++++++++++ linux-user/sparc64/sockbits.h | 1 + linux-user/tilegx/sockbits.h | 1 + linux-user/x86_64/sockbits.h | 1 + linux-user/xtensa/sockbits.h | 1 + 23 files changed, 443 insertions(+), 371 deletions(-) create mode 100644 linux-user/aarch64/sockbits.h create mode 100644 linux-user/alpha/sockbits.h create mode 100644 linux-user/arm/sockbits.h create mode 100644 linux-user/cris/sockbits.h create mode 100644 linux-user/generic/sockbits.h create mode 100644 linux-user/i386/sockbits.h create mode 100644 linux-user/m68k/sockbits.h create mode 100644 linux-user/microblaze/sockbits.h create mode 100644 linux-user/mips/sockbits.h create mode 100644 linux-user/mips64/sockbits.h create mode 100644 linux-user/nios2/sockbits.h create mode 100644 linux-user/openrisc/sockbits.h create mode 100644 linux-user/ppc/sockbits.h create mode 100644 linux-user/riscv/sockbits.h create mode 100644 linux-user/s390x/sockbits.h create mode 100644 linux-user/sh4/sockbits.h create mode 100644 linux-user/sparc/sockbits.h create mode 100644 linux-user/sparc64/sockbits.h create mode 100644 linux-user/tilegx/sockbits.h create mode 100644 linux-user/x86_64/sockbits.h create mode 100644 linux-user/xtensa/sockbits.h