From patchwork Thu Aug 3 16:35:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1816581 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=s2FYvmsn; dkim-atps=neutral Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RGvdW1zGHz1ybS for ; Fri, 4 Aug 2023 02:37:19 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F25A3855583 for ; Thu, 3 Aug 2023 16:37:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F25A3855583 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691080637; bh=0DoZJdrbny/Hd/2VtPmLgB9DDr1R3GUzgVqPAbmRF9o=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=s2FYvmsnJPbOXtrgxoHLDL4ryK07AjrZEF5rZ9CDwKP6haC69kzbXw9CA4GO1mFzc VLOsy1GlPSwu0TKd3Ygmk/bB0JpjD/F6sa8aIwvNPYjud1egLeVlxSeZTuuFvxNtOA NwuWUVandyJmObR9HJQ6IM2qHYtDczsIx+erlbwI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id E57993858C2A for ; Thu, 3 Aug 2023 16:36:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E57993858C2A Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6bcccbd9365so541096a34.2 for ; Thu, 03 Aug 2023 09:36:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691080569; x=1691685369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0DoZJdrbny/Hd/2VtPmLgB9DDr1R3GUzgVqPAbmRF9o=; b=ZRMgoGl3x4dNWujUdICPnOKUEcHe4sFdIAL9MngwigBRYaCLvbvCVviVNEDSLVaTrA KmdHYgqhKJHG+ILJxd0a1R+2A3PugCWYc6REB1czEQitF1AMid5BIaeMEuXoIdDHepME j0OnvbKOLZgDPUF1PqHcjILzqOjxo/0TvtFP9XdHzkKJAx3tZ8X/EpnGRw62vUzt1ALs 75UrQ5kJAnPKQSyEEsgcw+wZe1esu67DDAVsDkM7LE8mK8e5DpiaYR5WguNO1MztXjZ/ EPBbSfXEMCnhsZk9U5HlG+XB6XghDi1ShZbcOAg2vKFJ/qUS7BAMfSHPDqSn0vCfAbfa BDdQ== X-Gm-Message-State: ABy/qLZKzldrWgAUzO1T8IqzanFGmGcYjElOau78V/vWSUVgst2bvJ3V 4G5sZSONU49vrn83hfv9pkwXhFHFr4L7ykzrSQICOg== X-Google-Smtp-Source: APBJJlGQY2Fuwj0g1h2KMbNnnHwWasffTCFHIkt9mt3a6Sblb+g0GCaWpy8sakU4DLjqqXqyzlMlug== X-Received: by 2002:a05:6830:14d5:b0:6b9:350e:4051 with SMTP id t21-20020a05683014d500b006b9350e4051mr18548119otq.4.1691080568662; Thu, 03 Aug 2023 09:36:08 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c1:9aa9:6a6b:da4a:374c:385a]) by smtp.gmail.com with ESMTPSA id t12-20020a0568301e2c00b006b9a9bc7773sm148694otr.56.2023.08.03.09.36.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 09:36:07 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v7 3/8] linux: Undef __ASSUME_CLONE3 for alpha, ia64, nios2, sh, and sparc Date: Thu, 3 Aug 2023 13:35:53 -0300 Message-Id: <20230803163558.991832-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230803163558.991832-1-adhemerval.zanella@linaro.org> References: <20230803163558.991832-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Not all architectures added clone3 syscall. --- .../unix/sysv/linux/alpha/kernel-features.h | 3 +++ .../unix/sysv/linux/ia64/kernel-features.h | 3 +++ .../unix/sysv/linux/nios2/kernel-features.h | 23 +++++++++++++++++++ sysdeps/unix/sysv/linux/sh/kernel-features.h | 3 +++ .../unix/sysv/linux/sparc/kernel-features.h | 3 +++ 5 files changed, 35 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/nios2/kernel-features.h diff --git a/sysdeps/unix/sysv/linux/alpha/kernel-features.h b/sysdeps/unix/sysv/linux/alpha/kernel-features.h index 3151e75449..e298bf2bcc 100644 --- a/sysdeps/unix/sysv/linux/alpha/kernel-features.h +++ b/sysdeps/unix/sysv/linux/alpha/kernel-features.h @@ -50,4 +50,7 @@ /* Alpha requires old sysvipc even being a 64-bit architecture. */ #undef __ASSUME_SYSVIPC_DEFAULT_IPC_64 +/* Alpha does not provide clone3. */ +#undef __ASSUME_CLONE3 + #endif /* _KERNEL_FEATURES_H */ diff --git a/sysdeps/unix/sysv/linux/ia64/kernel-features.h b/sysdeps/unix/sysv/linux/ia64/kernel-features.h index 98ebfb74bf..6580ec20fe 100644 --- a/sysdeps/unix/sysv/linux/ia64/kernel-features.h +++ b/sysdeps/unix/sysv/linux/ia64/kernel-features.h @@ -34,4 +34,7 @@ #undef __ASSUME_CLONE_DEFAULT #define __ASSUME_CLONE2 +/* ia64 does not provide clone3. */ +#undef __ASSUME_CLONE3 + #endif /* _KERNEL_FEATURES_H */ diff --git a/sysdeps/unix/sysv/linux/nios2/kernel-features.h b/sysdeps/unix/sysv/linux/nios2/kernel-features.h new file mode 100644 index 0000000000..bb2d887dd5 --- /dev/null +++ b/sysdeps/unix/sysv/linux/nios2/kernel-features.h @@ -0,0 +1,23 @@ +/* Set flags signalling availability of kernel features based on given + kernel version number. NIOS2 version. + Copyright (C) 2023 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library. If not, see + . */ + +#include_next + +/* nios2 does not provide clone3. */ +#undef __ASSUME_CLONE3 diff --git a/sysdeps/unix/sysv/linux/sh/kernel-features.h b/sysdeps/unix/sysv/linux/sh/kernel-features.h index 953fa8dff0..80a90d05bb 100644 --- a/sysdeps/unix/sysv/linux/sh/kernel-features.h +++ b/sysdeps/unix/sysv/linux/sh/kernel-features.h @@ -55,4 +55,7 @@ # undef __ASSUME_STATX #endif +/* sh does not provide clone3. */ +#undef __ASSUME_CLONE3 + #endif diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h index 98c938c16d..fa9383081f 100644 --- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h +++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h @@ -87,3 +87,6 @@ (INLINE_CLONE_SYSCALL). */ #undef __ASSUME_CLONE_DEFAULT #define __ASSUME_CLONE_BACKWARDS 1 + +/* sparc does not provide clone3. */ +#undef __ASSUME_CLONE3