From patchwork Sat Aug 16 00:14:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 118452 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D363D3858C42 for ; Sat, 16 Aug 2025 00:28:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D363D3858C42 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 37EE93858CDA for ; Sat, 16 Aug 2025 00:14:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37EE93858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 37EE93858CDA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755303265; cv=none; b=wmwSis6ItxrQXtc9zXSwKHlgje7IoMIfw9aFlGQOVGKA5kIBJarRIquHQqmQC2GKkmsp0cS877f0U7gPftq2El56LPMNfunsds5hh8jWE4N/a+Tp9NJmwPVhpRahCmP3bt0eFDjeCdTd9LScpdwPyJbalG5OKMblXDfuHBNx1zU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755303265; c=relaxed/simple; bh=0C0eFXn8LRZSHRqW9iFyaNWEEyN9nUw6SZZfyM/fuNM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=vj49iwnbHNnReg0G7Bux4cWLdNlXpxohZepS5z0/gwVVvUvsloGj6VchQfVnZwNBhhP1QwZu8/GjMDXZigdwsFf6jSeL1PzXCT9YoTJtKgDCjEzRuQ0zXHOHK1ejNvhKt4xqt9AXiFgHs8rSZiW8nwWcUjUwfLzEdkH+tSn2mkg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37EE93858CDA Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 7A9C1A5DFD; Sat, 16 Aug 2025 02:14:08 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6OOozvPEOSSP; Sat, 16 Aug 2025 02:14:08 +0200 (CEST) Received: from begin (165.21.205.77.rev.sfr.net [77.205.21.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id A4EBBA49AF; Sat, 16 Aug 2025 02:14:07 +0200 (CEST) Received: from samy by begin with local (Exim 4.98.2) (envelope-from ) id 1un4Yg-00000000WyM-3LU6; Sat, 16 Aug 2025 02:14:06 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: gfleury , commit-hurd@gnu.org Subject: [hurd,commited 14/19] htl: move __pthread_sigstate_init into libc. Date: Sat, 16 Aug 2025 02:14:00 +0200 Message-ID: <20250816001405.126154-15-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250816001405.126154-1-samuel.thibault@ens-lyon.org> References: <20250816001405.126154-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org From: gfleury Message-ID: <20250815181500.107433-15-gfleury@disroot.org> --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + sysdeps/mach/hurd/htl/pt-sigstate-init.c | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/htl/Makefile b/htl/Makefile index 7ce56265f5..52f784a72d 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -37,7 +37,6 @@ libpthread-routines := \ pt-sysdep \ pt-setup \ pt-spin \ - pt-sigstate-init \ pt-getname-np \ pt-setname-np \ sem_close \ @@ -202,6 +201,7 @@ routines := \ pt-sigmask \ pt-sigstate \ pt-sigstate-destroy \ + pt-sigstate-init \ pt-stack-alloc \ pt-testcancel \ pt-thread-alloc \ diff --git a/htl/Versions b/htl/Versions index 7d0b5f21be..4845742fc3 100644 --- a/htl/Versions +++ b/htl/Versions @@ -258,6 +258,7 @@ libc { __pthread_mutexattr_settype; __pthread_once; __pthread_setspecific; + __pthread_sigstate_init; __pthread_sigstate; __pthread_sigstate_destroy; __pthread_sigmask; diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 7651446b3b..24d0964ebf 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -311,6 +311,7 @@ libc_hidden_proto (__pthread_destroy_specific) /* Initialize newly create thread *THREAD's signal state data structures. */ extern error_t __pthread_sigstate_init (struct __pthread *thread); +libc_hidden_proto (__pthread_sigstate_init) /* Destroy the signal state data structures associated with thread *THREAD. */ diff --git a/sysdeps/mach/hurd/htl/pt-sigstate-init.c b/sysdeps/mach/hurd/htl/pt-sigstate-init.c index 5a17dd5982..a0c7f277e3 100644 --- a/sysdeps/mach/hurd/htl/pt-sigstate-init.c +++ b/sysdeps/mach/hurd/htl/pt-sigstate-init.c @@ -19,6 +19,7 @@ #include #include #include +#include error_t __pthread_sigstate_init (struct __pthread *thread) @@ -42,3 +43,5 @@ __pthread_sigstate_init (struct __pthread *thread) return 0; } + +libc_hidden_def (__pthread_sigstate_init)