From patchwork Tue Nov 26 20:53:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gfleury X-Patchwork-Id: 101930 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 4BCC13858031 for ; Tue, 26 Nov 2024 21:03:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BCC13858031 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=disroot.org header.i=@disroot.org header.a=rsa-sha256 header.s=mail header.b=P0m3B8IN X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) by sourceware.org (Postfix) with ESMTPS id 93BC13858C50 for ; Tue, 26 Nov 2024 20:57:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 93BC13858C50 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=disroot.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 93BC13858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732654644; cv=none; b=J49tardy5DBs/MOSc0TpatG+9uyopPrQFIiBCT19DbnDRpAJRyLmakTIxKKFNpvqf/L7tupKJT6ZMZdSzt8iyi4m909GlrvwNyicVNPsb7iesgpS0Elwmpkn69PgOm2btWUpZ4dmQAC0OESJ8/+6RWYsi+3Vo8myv5b7ZGHL3rg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732654644; c=relaxed/simple; bh=wW4zYrsiZ1ml9E6nEPFjBUHeHMyN/AHwFUV3JAtATa0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=rFHLF6g4ba6WDJhfN6l8l99//45PUEwviaiTMAzFkTzhLvLKfAtXWwzv7COpDGghpicpjniGh8jkOmvzjHKAYWDYnoFLnc3O9FzVuD0FT3C05N1LSHvnZyAuLw0oO/ucnGoOBMOZhkwbI8FHCSXQidH1hd/QC8XutiYJd6qo8Sc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93BC13858C50 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 56A1F24F45; Tue, 26 Nov 2024 21:57:23 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id R5-eSgVeFoPX; Tue, 26 Nov 2024 21:57:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1732654639; bh=wW4zYrsiZ1ml9E6nEPFjBUHeHMyN/AHwFUV3JAtATa0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=P0m3B8INk+B0v2EDaTMUGueQzG2G+gcJ2YOdtMOHRzSSatc++NRo5RehoW945rPca JE++xLnQojfO/pTjXlweg9/76IiVsNGRh29RtTgk4l7YrWF7Jt9BptIyJ///xt8kDC a9CPBHfg4WBRsQ0/pJHlpc6at6sqv8sEi9oxy29QN57198DMDXvf/S+Y1OQ48axcou aFaw+KvSibBTxR3t9tetTdFG1xrVzKo8ETE53+HWP0eUILtfQsyVMvDPu0ZA5WdZ6f sCso9Pbdi+/PQp3ANR55xXqrf2C9EyGjsvTuIubZclggk31uyIGrYbRUskWi+RhVLS IvPaI7l/uN1UQ== From: gfleury To: libc-alpha@sourceware.org Cc: gfleury Subject: [PATCH 2/7] htl: move __pthread_default_condattr into libc. Date: Tue, 26 Nov 2024 22:53:24 +0200 Message-Id: <20241126205329.2215295-3-gfleury@disroot.org> In-Reply-To: <20241126205329.2215295-1-gfleury@disroot.org> References: <20241126205329.2215295-1-gfleury@disroot.org> MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, 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 Signed-off-by: gfleury --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + sysdeps/htl/pt-cond.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htl/Makefile b/htl/Makefile index 2658f247..5f9b2ba2 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -92,7 +92,6 @@ libpthread-routines := \ pt-rwlock-timedrdlock \ pt-rwlock-timedwrlock \ pt-rwlock-unlock \ - pt-cond \ pt-condattr-init \ pt-condattr-getclock \ pt-condattr-getpshared \ @@ -205,6 +204,7 @@ routines := \ pt-attr-setstack \ pt-attr-setstackaddr \ pt-attr-setstacksize \ + pt-cond \ pt-condattr-destroy \ pt-getschedparam \ pt-nthreads \ diff --git a/htl/Versions b/htl/Versions index 12399ba1..7aa8a1fe 100644 --- a/htl/Versions +++ b/htl/Versions @@ -83,6 +83,7 @@ libc { __pthread_attr_setstacksize; __pthread_attr_setstackaddr; __pthread_attr_setstack; + __pthread_default_condattr; } } diff --git a/htl/pt-internal.h b/htl/pt-internal.h index bdc8b83d..23fdb73f 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -329,6 +329,7 @@ extern const struct __pthread_rwlockattr __pthread_default_rwlockattr; /* Default condition attributes. */ extern const struct __pthread_condattr __pthread_default_condattr; +libc_hidden_proto (__pthread_default_condattr) /* Semaphore encoding. See nptl implementation for the details. */ diff --git a/sysdeps/htl/pt-cond.c b/sysdeps/htl/pt-cond.c index 5c66c22c..42b18121 100644 --- a/sysdeps/htl/pt-cond.c +++ b/sysdeps/htl/pt-cond.c @@ -25,3 +25,4 @@ const struct __pthread_condattr __pthread_default_condattr = { __pshared: PTHREAD_PROCESS_PRIVATE, __clock: CLOCK_REALTIME }; +libc_hidden_data_def (__pthread_default_condattr)