From patchwork Mon Nov 17 07:47:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 124505 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 352B03858D3C for ; Mon, 17 Nov 2025 07:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 352B03858D3C X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 19D733858D21 for ; Mon, 17 Nov 2025 07:47:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 19D733858D21 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 19D733858D21 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=1763365633; cv=none; b=iZX79n7nVtuuqdj9ehzuT2oPYR+9jTLP1t867To4xZ6zODZIj5BMOLTWKvJQAX9H+B8DiMyyAx1+x7tnDXfbQ7mI96ADNIHzxplS47rZF2pRTPE7qw59vB1+EiEgSomeGcnoR5le+LGKCF772ROAREirgq0DQ6VM6zi1up+qcf4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763365633; c=relaxed/simple; bh=yxPiDUJSJFqk2w3gyQu0kxt0L27NHeos8L+jncZw79U=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=OAEhfV3khlX4eHR1M1J2F4TOb3cc3GqWalliNN4kWLbB2vz9TW/9ckbaIiG96IvOEtRsHLt2Ak/E6NFfTlYEYmW8aIKSPUWpDL1Vwn1oPjBRvY5Jv1MHD1m0R25zH+gEvt6Hcf2c5Mpu05CN3+aLnYseuCqT4xSQvpvSmm+9MWE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19D733858D21 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 35019A1DBE; Mon, 17 Nov 2025 08:47:12 +0100 (CET) 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 iXBa69D7BmAv; Mon, 17 Nov 2025 08:47:12 +0100 (CET) Received: from end (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (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 1AE82A0387; Mon, 17 Nov 2025 08:47:12 +0100 (CET) Received: from samy by end with local (Exim 4.99) (envelope-from ) id 1vKtx9-0000000CqBY-2kLQ; Mon, 17 Nov 2025 08:47:11 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd, commited] htl: Move __pthread_enable/disable_asynccancel into libc Date: Mon, 17 Nov 2025 08:47:10 +0100 Message-ID: <20251117074710.3060529-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.0 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 This is actually needed before we make pthread_cancel available in libc. --- htl/Makefile | 2 +- htl/Versions | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htl/Makefile b/htl/Makefile index 9fde4174bb..f841b33b51 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -33,7 +33,6 @@ libpthread-routines := \ pt-spin \ pt-getname-np \ pt-setname-np \ - cancellation \ # libpthread-routine headers := \ @@ -67,6 +66,7 @@ distribute := routines := \ alloca_cutoff \ + cancellation \ htlfreeres \ pt-alloc \ pt-attr \ diff --git a/htl/Versions b/htl/Versions index 349ab4fe4b..280459c2a6 100644 --- a/htl/Versions +++ b/htl/Versions @@ -265,6 +265,8 @@ libc { __pthread_dealloc; __pthread_dealloc_finish; __pthread_setcancelstate; + __pthread_enable_asynccancel; + __pthread_disable_asynccancel; __pthread_cond_broadcast; __pthread_cond_destroy; __pthread_cond_init; @@ -345,7 +347,5 @@ libpthread { __pthread_initialize_minimal; __pthread_create; - __pthread_enable_asynccancel; - __pthread_disable_asynccancel; } }