From patchwork Sat Aug 16 00:14:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 118453 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 3DBAB3858D1E for ; Sat, 16 Aug 2025 00:29:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DBAB3858D1E 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 02750385841B for ; Sat, 16 Aug 2025 00:14:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 02750385841B 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 02750385841B 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=1755303266; cv=none; b=fbbnJLVYOKWmO145tLqM0cwNWE9928t4dOba5DFit5yuZwZ8tG8GhKXWwHcbm+MqZVJRy/i9elApbhHdsqxkMnjcpWxi87rQFQs+vlzBHzHhnuFkl5/dGOvvobaZ/CRCNyui9qYMdaZ+SBKgT/CHLoU0DVXPHgwbAfuWlfLKzH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755303266; c=relaxed/simple; bh=wFLvO9wwPK1/vzszqwxqm+HXUovKJtTV/9BovT6z0Gs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=XUErYhNAgpBGhiOISZ89+FxvSnWgK1G1BnWoxcKo4UKL7Cflbj194lQNaY/VfySx0ZnD215X0iA5QLAR1uvwQKlW8ThAO4duxRMFsnnnkVrewnhgs5L+4MwwG8ad1soIOXKXarJL3EMeF+zUWlyMBtLIdBntOYJTlmn9GyKfTEY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02750385841B Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 8BD15A49AF; 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 RkMkLW2-RdBN; 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 B2CEFA5DFF; Sat, 16 Aug 2025 02:14:07 +0200 (CEST) Received: from samy by begin with local (Exim 4.98.2) (envelope-from ) id 1un4Yg-00000000Wyj-3ov8; 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 18/19] htl: move __pthread_setup into libc. Date: Sat, 16 Aug 2025 02:14:04 +0200 Message-ID: <20250816001405.126154-19-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.4 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-19-gfleury@disroot.org> --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 2 +- sysdeps/mach/hurd/i386/htl/pt-setup.c | 1 + sysdeps/mach/hurd/x86_64/htl/pt-setup.c | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/htl/Makefile b/htl/Makefile index ab78372da7..995bcefbfc 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -32,7 +32,6 @@ libpthread-routines := \ pt-hurd-cond-timedwait \ pt-startup \ pt-sysdep \ - pt-setup \ pt-spin \ pt-getname-np \ pt-setname-np \ @@ -198,6 +197,7 @@ routines := \ pt-setschedparam \ pt-setschedprio \ pt-setspecific \ + pt-setup \ pt-sigmask \ pt-sigstate \ pt-sigstate-destroy \ diff --git a/htl/Versions b/htl/Versions index 1c7e82c1d3..31456186c8 100644 --- a/htl/Versions +++ b/htl/Versions @@ -270,6 +270,7 @@ libc { __pthread_mutexattr_settype; __pthread_once; __pthread_setspecific; + __pthread_setup; __pthread_sigstate_init; __pthread_sigstate; __pthread_sigstate_destroy; diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 24d0964ebf..f816aca282 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -242,7 +242,7 @@ extern int __pthread_setup (struct __pthread *__restrict thread, void *), void *(*start_routine) (void *), void *__restrict arg); - +libc_hidden_proto (__pthread_setup) /* Allocate a kernel thread (and any miscellaneous system dependent resources) for THREAD; it must not be placed on the run queue. */ diff --git a/sysdeps/mach/hurd/i386/htl/pt-setup.c b/sysdeps/mach/hurd/i386/htl/pt-setup.c index c6df0101cf..b9c41b9e6e 100644 --- a/sysdeps/mach/hurd/i386/htl/pt-setup.c +++ b/sysdeps/mach/hurd/i386/htl/pt-setup.c @@ -98,3 +98,4 @@ __pthread_setup (struct __pthread *thread, return 0; } +libc_hidden_def (__pthread_setup) diff --git a/sysdeps/mach/hurd/x86_64/htl/pt-setup.c b/sysdeps/mach/hurd/x86_64/htl/pt-setup.c index 76a4394332..88c39b7899 100644 --- a/sysdeps/mach/hurd/x86_64/htl/pt-setup.c +++ b/sysdeps/mach/hurd/x86_64/htl/pt-setup.c @@ -91,3 +91,4 @@ __pthread_setup (struct __pthread *thread, return 0; } +libc_hidden_def (__pthread_setup)