From patchwork Sun Feb 16 14:13:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1238756 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-109820-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=gqL86tPr; 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 48L8Gr6VjYz9sRN for ; Mon, 17 Feb 2020 01:13:24 +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=IMz wO0eGy7NMyhPisb35Xnq6GN9g/ZbUkdacAQMD4QcOKrCKz9SxWlC5suTQECNulL6 Prk9wcwJyJatjXgwdOVHopwnB2O6mYW65d72BpMamgU37qY46VTXZkUDhgCAYuXy cpNsYy9J9ng86WRxPLT62wtzZsxOEpXHyu1V/JUY= 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=+FWWajf04 PDfbrEJLDzVNoFBuLI=; b=gqL86tPrYnThlVT6tmFrhuxeRVZ1Pqe2JRHXalpTg sJCarxX2J759xNEp+GE55myIr/jjoCQpTRGbjkraA+AnBDLjtLwfMp9i0t/LWFqg ZnMoAqhoVRUWmxO215x/U7JXQmqHJGt13mtxAO2sBecEiUGsMjyFxHFSWuz5O+Bg I8= Received: (qmail 30781 invoked by alias); 16 Feb 2020 14:13:18 -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 30770 invoked by uid 89); 16 Feb 2020 14:13:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=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=robust, 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: Add missing functions and defines for robust mutexes Date: Sun, 16 Feb 2020 06:13:00 -0800 Message-Id: <20200216141300.400829-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 --- htl/Versions | 5 +++++ sysdeps/htl/pthread.h | 1 + sysdeps/mach/hurd/i386/libpthread.abilist | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/htl/Versions b/htl/Versions index 1ec6f363d5..a0962e6a42 100644 --- a/htl/Versions +++ b/htl/Versions @@ -150,6 +150,11 @@ libpthread { call_once; cnd_broadcast; cnd_destroy; cnd_init; cnd_signal; cnd_timedwait; cnd_wait; tss_create; tss_delete; tss_get; tss_set; + + pthread_mutexattr_getrobust; pthread_mutexattr_getrobust_np; + pthread_mutexattr_setrobust; pthread_mutexattr_setrobust_np; + + pthread_mutex_consistent; pthread_mutex_consistent_np; } GLIBC_PRIVATE { diff --git a/sysdeps/htl/pthread.h b/sysdeps/htl/pthread.h index 17f82e7180..d639385eb3 100644 --- a/sysdeps/htl/pthread.h +++ b/sysdeps/htl/pthread.h @@ -273,6 +273,7 @@ extern pthread_t pthread_self (void) __THROW; #ifdef __USE_XOPEN2K # define PTHREAD_MUTEX_STALLED __PTHREAD_MUTEX_STALLED # define PTHREAD_MUTEX_ROBUST __PTHREAD_MUTEX_ROBUST +# define PTHREAD_MUTEX_ROBUST_NP __PTHREAD_MUTEX_ROBUST #endif #include diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist index 4a5e1fb750..6e75c90009 100644 --- a/sysdeps/mach/hurd/i386/libpthread.abilist +++ b/sysdeps/mach/hurd/i386/libpthread.abilist @@ -155,6 +155,12 @@ GLIBC_2.32 mtx_lock F GLIBC_2.32 mtx_timedlock F GLIBC_2.32 mtx_trylock F GLIBC_2.32 mtx_unlock F +GLIBC_2.32 pthread_mutex_consistent F +GLIBC_2.32 pthread_mutex_consistent_np F +GLIBC_2.32 pthread_mutexattr_getrobust F +GLIBC_2.32 pthread_mutexattr_getrobust_np F +GLIBC_2.32 pthread_mutexattr_setrobust F +GLIBC_2.32 pthread_mutexattr_setrobust_np F GLIBC_2.32 thrd_create F GLIBC_2.32 thrd_detach F GLIBC_2.32 thrd_exit F