From patchwork Mon Feb 15 12:45:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1440527 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DfPBy1hWGz9sBy for ; Mon, 15 Feb 2021 23:52:26 +1100 (AEDT) Received: from localhost ([::1]:33596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBdMW-0001lQ-8Z for incoming@patchwork.ozlabs.org; Mon, 15 Feb 2021 07:52:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdFu-00046l-MR for qemu-devel@nongnu.org; Mon, 15 Feb 2021 07:45:35 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:33581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBdFm-0000fh-LM for qemu-devel@nongnu.org; Mon, 15 Feb 2021 07:45:33 -0500 Received: from localhost.localdomain ([82.252.134.158]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MQMqN-1lXr4X3ndp-00MMqP; Mon, 15 Feb 2021 13:45:25 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 04/13] linux-user: Add missing TARGET___O_TMPFILE for hppa and alpha Date: Mon, 15 Feb 2021 13:45:10 +0100 Message-Id: <20210215124519.720265-5-laurent@vivier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215124519.720265-1-laurent@vivier.eu> References: <20210215124519.720265-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Js7in6gK8aAOzL2AY+rsXNEGdm9OXejg39NF2XcOp7KRz7Y/Xce ZEPvZ/Xtvmx/HiLu5O3OuszdIPSvsfC9m7ubcFiX3n0DcOs8fFUwZEhcC2cIFt/3dx1nl4f pNSwV6NAgp0+qIze+Id5BC7KoxM1wET3IBv74Fq/q97OayqKrptCdX/SjVcJh1cfnRB7eVO sgU3k7y8CaHC6R08aJvtQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:agyGsgrcf3w=:n1tti4B0/Az7Pv3TxKzNny ouDIHM7lezquCMjLzBwlltPHqUp+Wm3s/7nxYgnWbCBem4v0oPxHNvTDYCrxp1jiva5Nmsqe4 tLF9OlHRZzj8z4FOPXk13ns0DGfY97zAkjabdp/w63W0KDPM33sqYSLzZ2hvj9TBE07juS2Y8 xRDjjKjnLsfMXIAXwauPYJhE7ncL7iOaqEv41ZOnzov0ltfdcnwyVLuCzO5TvvLQv7vR5KW6y QttotAxdCAxnChIWlIyFOADl+r6g9OH406RA3aKo/YuUjaiQ7uLkTjNY0iNNTswML8JFGOqdj 4d8/Wun8kFtHEvqjhaNj9aO46n8g5/vUlwCBJgomdPAzskVHT/orxrwwYLaC2vrOYJIGNEw3S KgOfRuQsmJF5lVaVL5XXoQvIgQSkaX2w9qiMPJIM1ZLyq/VVACTpUF0JI312i Received-SPF: none client-ip=217.72.192.73; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: Helge Deller , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Helge Deller The hppa and alpha targets miss the #define of the TARGET___O_TMPFILE and as such fail to run a trivial symlink command like ln -s /bin/bash /tmp which results in an -EINVAL return code. Adding the define fixes the problem. Signed-off-by: Helge Deller Reviewed-by: Laurent Vivier Message-Id: <20210201155922.GA18291@ls3530.fritz.box> Signed-off-by: Laurent Vivier --- linux-user/alpha/target_fcntl.h | 1 + linux-user/hppa/target_fcntl.h | 1 + 2 files changed, 2 insertions(+) diff --git a/linux-user/alpha/target_fcntl.h b/linux-user/alpha/target_fcntl.h index e16ed1d4157f..99774d731727 100644 --- a/linux-user/alpha/target_fcntl.h +++ b/linux-user/alpha/target_fcntl.h @@ -23,6 +23,7 @@ #define TARGET_O_CLOEXEC 010000000 #define TARGET___O_SYNC 020000000 #define TARGET_O_PATH 040000000 +#define TARGET___O_TMPFILE 0100000000 #define TARGET_F_GETLK 7 #define TARGET_F_SETLK 8 diff --git a/linux-user/hppa/target_fcntl.h b/linux-user/hppa/target_fcntl.h index bd966a59b8d4..9eaeef9d8e7b 100644 --- a/linux-user/hppa/target_fcntl.h +++ b/linux-user/hppa/target_fcntl.h @@ -21,6 +21,7 @@ #define TARGET_O_CLOEXEC 010000000 #define TARGET___O_SYNC 000100000 #define TARGET_O_PATH 020000000 +#define TARGET___O_TMPFILE 040000000 #define TARGET_F_RDLCK 1 #define TARGET_F_WRLCK 2