From patchwork Tue Sep 19 23:06:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Carlo_Marcelo_Arenas_Bel=C3=B3n?= X-Patchwork-Id: 9960467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E56296038F for ; Tue, 19 Sep 2017 23:08:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D690528EC3 for ; Tue, 19 Sep 2017 23:08:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9DA728ECB; Tue, 19 Sep 2017 23:08:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 69B0628EC3 for ; Tue, 19 Sep 2017 23:08:09 +0000 (UTC) Received: from localhost ([::1]:45798 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRce-0004zh-6V for patchwork-qemu-devel@patchwork.kernel.org; Tue, 19 Sep 2017 19:08:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duRbc-0004zS-C5 for qemu-devel@nongnu.org; Tue, 19 Sep 2017 19:07:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duRbX-0000tI-Ag for qemu-devel@nongnu.org; Tue, 19 Sep 2017 19:07:04 -0400 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]:35921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duRbX-0000sC-5A for qemu-devel@nongnu.org; Tue, 19 Sep 2017 19:06:59 -0400 Received: by mail-it0-x243.google.com with SMTP id e134so576348ite.3 for ; Tue, 19 Sep 2017 16:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WBV0AzFZLn44L9sTSYD0gdxn/vLIZD0JvpG2stRHh88=; b=Qjg/tL4SCDrcXdZan4bJYOJVaksqKgNDgq+aWzA+oAmaWfSX6vDFB/CxSELVLQLKQc U5XdIOp5zIE4VP1rVZ6AapY1vQvQRmzaGEC8NzTTVjefTaKmAZzXv3bTf4OrtPADq8E5 qZxl6a1m+pYoF4Ei5sAVKRgVfQ9Ks9eRM6bjHWRvlLrknXn0xCb3IUKFGwQpF/mH/TEE doti5AE4gmFf8Hsyie7M0s8qxpWw/XjAXMDpl/RDglYN01EwBF1J16Yo7A8D2EQqRpbg 8agxc/GNmSuRrQunmNWr650zDQaYXdWPP/V+rQMKhDA0CkOmRuOjk5uIrfWP2NpL8QKC b6Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WBV0AzFZLn44L9sTSYD0gdxn/vLIZD0JvpG2stRHh88=; b=GcTBT9BNdLGmeFiQfGb3V9ysLFCLQPv1ZxUfDXfA9wMvaMwcX97/DUJeAupYypJz1p zRKiz8mCI1zor/cZ0p5Xj7wmL/KNzDqn8eoXsUV3SEuFXzDHNqVFKXIzkGWKS7Gci9U6 o0HN1qnvy/aQlHsz1Knr0yOP7BtMHI3iyiqO/x7x9XfpSsWGmUm8q7wYg9hWPrOAAzhR PaHrn5QmKs1mNIJaxj1ZLWKnZ+DD1USEfHqtZV3JCz1s4Ik9s2e3ES6ftGQcSQG1fod0 TY+XVWHj0mEwmqSu9k6gE80ZA1ENSh1rqOgcuCaam4aO+z8/Mt4WrbbcTfHlNlrO93ld AK6Q== X-Gm-Message-State: AHPjjUgo1ydPA/DNRYeGXYDXe340Fe0B/My/yRr9dqKiQAHiZor3Dcjt K6TQu2YJe93iScb+JANkRDcTfMAn X-Google-Smtp-Source: AOwi7QBlChk1ko6MsyUldWKzoHfBlEQMLYMMcM1qsbrIb2duDjJMvRt2pkmsbKrhlaOU66WI7SequQ== X-Received: by 10.36.95.10 with SMTP id r10mr291430itb.73.1505862418007; Tue, 19 Sep 2017 16:06:58 -0700 (PDT) Received: from 172-11-32-171.lightspeed.mmphtn.sbcglobal.net (50-207-95-178-static.hfc.comcastbusiness.net. [50.207.95.178]) by smtp.gmail.com with ESMTPSA id z63sm1544033itf.23.2017.09.19.16.06.56 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Sep 2017 16:06:57 -0700 (PDT) From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= To: qemu-devel@nongnu.org Date: Tue, 19 Sep 2017 16:06:41 -0700 Message-Id: <20170919230643.87425-1-carenas@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::243 Subject: [Qemu-devel] [PATCH 1/3] linux-user: fix TARGET_SO_LINGER for sparc 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@linaro.org, gang.chen.5i5j@gmail.com, riku.voipio@iki.fi, laurent@vivier.eu, =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Carlo Marcelo Arenas Belón --- linux-user/socket.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-user/socket.h b/linux-user/socket.h index 7051cd2cf4..129f9b4713 100644 --- a/linux-user/socket.h +++ b/linux-user/socket.h @@ -246,8 +246,12 @@ #define TARGET_SOCK_MAX (TARGET_SOCK_PACKET + 1) #define TARGET_SOCK_TYPE_MASK 0xf /* Covers up to TARGET_SOCK_MAX-1. */ + #define TARGET_SO_LINGER 0x0080 + #define TARGET_SO_PASSSEC 31 #else + #define TARGET_SO_LINGER 13 + #define TARGET_SO_PASSSEC 34 #endif @@ -268,7 +272,7 @@ #define TARGET_SO_OOBINLINE 10 #define TARGET_SO_NO_CHECK 11 #define TARGET_SO_PRIORITY 12 - #define TARGET_SO_LINGER 13 + #define TARGET_SO_BSDCOMPAT 14 /* To add :#define TARGET_SO_REUSEPORT 15 */ #if defined(TARGET_PPC)