From patchwork Tue Nov 19 00:56:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 101477 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 37AF7385840C for ; Tue, 19 Nov 2024 00:57:59 +0000 (GMT) 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 CA1D33858D35 for ; Tue, 19 Nov 2024 00:56:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA1D33858D35 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 CA1D33858D35 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=1731977797; cv=none; b=ki0XbBCOpwT6Seu2GX/YTdNVrGbr7NI6Y6jF/ULYkyhmb5ZvWQh229VJLtYSJCR15SL2UApXERdj/EL9JtT/K6PmEsQdpPg4GF5vlqp0g+X99abc77SL9EhwxlQ3/TB9KjoVCsYF7+ZeQIFSlujuIgw5z1QkPF/ySHBGUjXXlYk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731977797; c=relaxed/simple; bh=z1iBord1DKUYeVRwP3XfotsdCvR9EOp0Jrp2sD99OBc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=TiK1m8N08jEkAcDlYOjxdKJqF2fyhOKt2cV2Fq7PooF6zq47mi4IrGSZcHJHIFShUUlyhrmELt4ViRnM1ZEF1Ho9LCldoe9QYcHNuDSO0BwHRZoSjZ9+v0AyPsShF8aNXbcL5vBaVmdaZkEl0t0dapoEmSqP8ceim1xNTch5MnA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA1D33858D35 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id A22C4A1C3E; Tue, 19 Nov 2024 01:56:36 +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 nrdHImG5atPQ; Tue, 19 Nov 2024 01:56:36 +0100 (CET) Received: from begin (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 73A59A1BE9; Tue, 19 Nov 2024 01:56:36 +0100 (CET) Received: from samy by begin with local (Exim 4.98) (envelope-from ) id 1tDCXj-0000000CrOY-3vC2; Tue, 19 Nov 2024 01:56:35 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: gfleury , commit-hurd@gnu.org Subject: [hurd,commited 02/13] htl: move __pthread_default_attr into libc Date: Tue, 19 Nov 2024 01:56:23 +0100 Message-ID: <20241119005634.3065147-3-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241119005634.3065147-1-samuel.thibault@ens-lyon.org> References: <20241119005634.3065147-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, 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 Signed-off-by: gfleury --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + sysdeps/htl/pt-attr.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htl/Makefile b/htl/Makefile index bd1afe8009..beb39e5fea 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -25,7 +25,6 @@ SYSDEPS := lockfile LCLHDRS := libpthread-routines := \ - pt-attr \ pt-attr-getguardsize \ pt-attr-getscope \ pt-attr-getstack \ @@ -198,6 +197,7 @@ routines := \ forward \ htlfreeres \ libc_pthread_init \ + pt-attr \ pt-attr-destroy \ pt-attr-getdetachstate \ pt-attr-getinheritsched \ diff --git a/htl/Versions b/htl/Versions index 34b1f87a5f..05ef80548f 100644 --- a/htl/Versions +++ b/htl/Versions @@ -50,6 +50,7 @@ libc { __pthread_total; ___pthread_self; __pthread_init_thread; + __pthread_default_attr; } } diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 85a7d905e2..bdc8b83dc9 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -319,6 +319,7 @@ extern int __pthread_mutex_checklocked (pthread_mutex_t *mtx); /* Default thread attributes. */ extern struct __pthread_attr __pthread_default_attr; +libc_hidden_proto (__pthread_default_attr) /* Default barrier attributes. */ extern const struct __pthread_barrierattr __pthread_default_barrierattr; diff --git a/sysdeps/htl/pt-attr.c b/sysdeps/htl/pt-attr.c index ddc2c80882..4f0ba83898 100644 --- a/sysdeps/htl/pt-attr.c +++ b/sysdeps/htl/pt-attr.c @@ -37,3 +37,4 @@ struct __pthread_attr __pthread_default_attr = { __contentionscope: PTHREAD_SCOPE_SYSTEM, __schedpolicy: SCHED_OTHER }; +libc_hidden_data_def (__pthread_default_attr)