From patchwork Mon Jan 13 00:42:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1221906 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108626-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=Fwjvs3X+; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47wvty6dVQz9s4Y for ; Mon, 13 Jan 2020 11:42:34 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; q=dns; s=default; b=nid XWQcPRY5S7xexsbT+O/TY6l+oC29LJ0hsm8M4EI9aIifgmVsyVSKNuHOpdyITY/1 O/50JKKvP2cGIvvKJ04TIRZZyQ/P3NqA9tWQM2nYZShyr1HmDbcrYcG+9xOXS2pm nQ4jjUuJjgOXoShjTWzyYHmJuHjj32NvOW1cnfhA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=default; bh=p9zzl9A5N xxNxlEu/todkvjsspI=; b=Fwjvs3X+zqi12FGnmYGbdPf1MtTTiMy1sMMxzHEd/ XcH43DAm/KVbBJcBO0zMhSvdiollCGuk1RSuOBkVnua93PLCKT2sd06nN9hqcUQV 5Ne1I0lPp1OBzwNaIkkYqxmxTorFwskEs/miaXOYgusy1dHgc2i7GFUUYLUG/iZC Tc= Received: (qmail 3986 invoked by alias); 13 Jan 2020 00:42:28 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 3977 invoked by uid 89); 13 Jan 2020 00:42:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] htl: Avoid exposing unixoid functions Date: Mon, 13 Jan 2020 01:42:23 +0100 Message-Id: <20200113004223.694836-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 C11 threads should not expose them. --- htl/pt-create.c | 2 +- htl/pt-yield.c | 2 +- sysdeps/htl/pt-destroy-specific.c | 2 +- sysdeps/mach/htl/pt-timedblock.c | 2 +- sysdeps/mach/hurd/Versions | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/htl/pt-create.c b/htl/pt-create.c index 59ba04d2a8..0b3237f46a 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -178,7 +178,7 @@ __pthread_create_internal (struct __pthread **thread, shall be empty." If the currnet thread is not a pthread then we just inherit the process' sigmask. */ if (__pthread_num_threads == 1) - err = sigprocmask (0, 0, &sigset); + err = __sigprocmask (0, 0, &sigset); else err = __pthread_sigstate (_pthread_self (), 0, 0, &sigset, 0); assert_perror (err); diff --git a/htl/pt-yield.c b/htl/pt-yield.c index 29fda256cc..11aa852ed3 100644 --- a/htl/pt-yield.c +++ b/htl/pt-yield.c @@ -22,5 +22,5 @@ int pthread_yield (void) { - return sched_yield (); + return __sched_yield (); } diff --git a/sysdeps/htl/pt-destroy-specific.c b/sysdeps/htl/pt-destroy-specific.c index 8430a5fb09..319aa4875f 100644 --- a/sysdeps/htl/pt-destroy-specific.c +++ b/sysdeps/htl/pt-destroy-specific.c @@ -68,7 +68,7 @@ __pthread_destroy_specific (struct __pthread *thread) /* This may take a very long time. Let those blocking on pthread_key_create or pthread_key_delete make progress. */ - sched_yield (); + __sched_yield (); } free (thread->thread_specifics); diff --git a/sysdeps/mach/htl/pt-timedblock.c b/sysdeps/mach/htl/pt-timedblock.c index 3b8779367d..63af869c90 100644 --- a/sysdeps/mach/htl/pt-timedblock.c +++ b/sysdeps/mach/htl/pt-timedblock.c @@ -39,7 +39,7 @@ __pthread_timedblock (struct __pthread *thread, /* We have an absolute time and now we have to convert it to a relative time. Arg. */ - err = clock_gettime (clock_id, &now); + err = __clock_gettime (clock_id, &now); assert (!err); if (now.tv_sec > abstime->tv_sec diff --git a/sysdeps/mach/hurd/Versions b/sysdeps/mach/hurd/Versions index 35257a0906..1d6633f782 100644 --- a/sysdeps/mach/hurd/Versions +++ b/sysdeps/mach/hurd/Versions @@ -14,6 +14,9 @@ libc { _dl_init_first; __close_nocancel_nostatus; + + # functions used in other libraries + __sigprocmask; } }