From nobody Tue May 21 03:59:34 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmx.de ARC-Seal: i=1; a=rsa-sha256; t=1612217225; cv=none; d=zohomail.com; s=zohoarc; b=lwajam9a6Smzg1ajrd0BzHavdmSvYi0Xu9SaYCJKNyg5f85Ok9+1Uy7ogM+d6xCYd0/7+ch7pflb0Enshnp9WCnZkn/TlbbGAqyxA+YUGFRMLlC+2zlJj0uGIixmVECMQ4wBRfMtJ6MHwEUFHnpzJH2pxuUoxqvLNnpnZv2siXY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612217225; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=VcNdQwUZ0T3LHXhTzq/gClRl02tFPN+u7W7aNb/XjP4=; b=ndrE15zY2NQ8qUemOEa6624FjdC7XTDyVE83mCIykhpLD1EHkYarxIcdh49n/yE2v/73nbD313UaI4qizdeKx4L+1UbFOWvzI8Kk988aoPimQk5IHGi5ce2sHoDIuhDXZPAGBQXOYO+C3FFdbXktKK9PkLxE8QYY/H9mfQQxCsY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 161221722566859.091837461540536; Mon, 1 Feb 2021 14:07:05 -0800 (PST) Received: from localhost ([::1]:56938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6hLc-0006kw-HG for importer@patchew.org; Mon, 01 Feb 2021 17:07:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6hKk-00069Q-Am for qemu-devel@nongnu.org; Mon, 01 Feb 2021 17:06:10 -0500 Received: from mout.gmx.net ([212.227.17.21]:50937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6hKh-0004uT-Nc for qemu-devel@nongnu.org; Mon, 01 Feb 2021 17:06:10 -0500 Received: from ls3530.fritz.box ([92.116.182.87]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Md6Mt-1lgr5u1XjX-00aCfS; Mon, 01 Feb 2021 23:05:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612217153; bh=F3x76zn/alXB+au4+ZIdy2sgRGweHzkE4lTNfkhBC54=; h=X-UI-Sender-Class:Date:From:To:Subject; b=fqvGsB/wGpE8PnH7LBbCvChTg8+YBacoOWAgIt5WIH0ENk6PaUBkWwlxlSZxUd3e7 FtKRmOI80mKEauvbwpTVoG6smhyLtnLLAJnOnoZPqk8sPWFPycW+KCqPGfjH01eQDo jBYXiSKoe9GwWAIZMO0NfxGY2OjVatMaC7fEl9Zc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Date: Mon, 1 Feb 2021 23:05:51 +0100 From: Helge Deller To: Laurent Vivier , qemu-devel@nongnu.org, Richard Henderson , Philippe =?iso-8859-15?Q?Mathieu-Daud=E9?= , John Paul Adrian Glaubitz Subject: [PATCH v2] linux-user: fix O_NONBLOCK usage for hppa target Message-ID: <20210201220551.GA8015@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K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4 EdVjib9J1TmxArMxACQDwChGmunQoR7dTK4Dl1xx2pgWe/EVSQ1qtauqRQVVi/Hvp5mERY9NL qLNHf61nM36dQIRmzLZQ== Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=212.227.17.21; envelope-from=deller@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmx.net) Content-Type: text/plain; charset="utf-8" Historically the parisc linux port tried to be compatible with HP-UX userspace and as such defined the O_NONBLOCK constant to 0200004 to emulate separate NDELAY & NONBLOCK values. Since parisc was the only Linux platform which had two bits set, this produced various userspace issues. Finally it was decided to drop the (never completed) HP-UX compatibilty, which is why O_NONBLOCK was changed upstream to only have one bit set in future with this commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3D75ae04206a4d0e4f541c1d692b7febd1c0fdb814 This patch simply adjusts the value for qemu-user too. Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier --- diff --git a/linux-user/hppa/target_fcntl.h b/linux-user/hppa/target_fcntl.h index bd966a59b8..08e3a4fcb0 100644 --- a/linux-user/hppa/target_fcntl.h +++ b/linux-user/hppa/target_fcntl.h @@ -8,7 +8,7 @@ #ifndef HPPA_TARGET_FCNTL_H #define HPPA_TARGET_FCNTL_H -#define TARGET_O_NONBLOCK 000200004 /* HPUX has separate NDELAY & NONBL= OCK */ +#define TARGET_O_NONBLOCK 000200000 #define TARGET_O_APPEND 000000010 #define TARGET_O_CREAT 000000400 /* not fcntl */ #define TARGET_O_EXCL 000002000 /* not fcntl */