From nobody Fri May 17 14:54:24 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=1612196963; cv=none; d=zohomail.com; s=zohoarc; b=ALm8ChR7srr4f8szK5x+1IOz3Yqdg/rWujtd0Lm1Y0cAKHdC3Rol6HlhcBU642B/t7SWK7XzTSS4LH/fFnvYT618ZDHUB9C7FeCUlLhucqSk85ln+yjVwBaMBDRK3++9smSZ4uJCvCfNNXBqX6LwQniO1MUVsjxKWj90r7KFNX8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612196963; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=C7wYowzdu3zU5l2FDi0au/u40Je5Z5HOvUqDtR5sUXs=; b=cNdXCmsf93VPCnQaNz9gYJYZCfbkIGo1rU6WvvhAwJZHqH6fTimh6ytmYbt+9NP8CsIrTC+cwpKKCTcTGFLz38VmpBtwT5wpJSFmIk8TpZ/SJynw9SDjW/oZtfaHs3SWxeMVElKmEkAkxC2ehw0hdM1xwFkEXGMRQpoX6Tq8Sh8= 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 1612196963895110.23272475982958; Mon, 1 Feb 2021 08:29:23 -0800 (PST) Received: from localhost ([::1]:43382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6c4o-0005DQ-HD for importer@patchew.org; Mon, 01 Feb 2021 11:29:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6c2h-0003Lu-Nl for qemu-devel@nongnu.org; Mon, 01 Feb 2021 11:27:11 -0500 Received: from mout.gmx.net ([212.227.17.22]:49277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6c2e-000055-38 for qemu-devel@nongnu.org; Mon, 01 Feb 2021 11:27:11 -0500 Received: from ls3530.fritz.box ([92.116.182.87]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVeI8-1lY9Ji3EHc-00RVAb; Mon, 01 Feb 2021 17:26:54 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612196814; bh=us+oMKC1S3zptV4fk0fp/Io8hBNgg8mDm4y7c7s+E58=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=C/MwlYUrLXzqRP3ny4qa+k8GbepFKTX4kyWSC+M4BNV2eqeKEoeZrAjpd85xZYRrZ nZNB8RdKfFSMbJDZBnyfwUMaKpRgYfHkzz5+PHqWoKqQLx/yx9rWjQDMiqF2i6kY/r SCnp7pK/UVnnWcUJ9shakfcLUkpTUjuGl3K7Omxs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Date: Mon, 1 Feb 2021 17:26:52 +0100 From: Helge Deller To: Laurent Vivier , qemu-devel@nongnu.org Subject: [PATCH] linux-user: fix O_NONBLOCK usage for hppa target Message-ID: <20210201162652.GA25611@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:POUqRyqOxIOcNdQlwLFOXYDqhJX88kTrQBEy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QAt+2I/keyHYssqbS9dIlBlWn8BHEdg aWq6G3/x/5c4+YBvsHnw== 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.22; 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_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Cc: Richard Henderson , Philippe =?iso-8859-15?Q?Mathieu-Daud=E9?= , John Paul Adrian Glaubitz 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 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 --- 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 */