From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.2 required=3.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 9D37F20248 for ; Thu, 14 Mar 2019 14:09:42 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding:subject; q= dns; s=default; b=HlkUddnbYsvN89Bq6qJ7bdIPFT2ZTpfrg7PpDlc5h1TBI9 cmAfdx6IOFosak/3+6nYMJPAbTqhr6XNcomAyRJ6T1HaDR/S4im8+DokSUXxOM/r U+BM+//d9rZbFSol2oEsJ7MFvuJHlly+upgGpAK2K01hcTQ2pc36ojIofNQNs= 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:message-id:from:to:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding:subject; s= default; bh=txM/U3pMci1aRjsujLCqZt5WUn0=; b=w4408xNZ7Gh2u1w7o0jh tFFAvZednLRoD4WviSX3MRpBvuot9DSWjR7CFEhPLtAFLQ4k9L0mbWUmcbIIOSoC s9xBITh+ULcMCW7N+bvYh8lve5UJzNdb45xA/WHsh+e6vjK0FOk2y/aMpvFYJMMx +l57I2DH+NioaLnykI6JCmo= Received: (qmail 115503 invoked by alias); 14 Mar 2019 14:09:40 -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 Received: (qmail 115494 invoked by uid 89); 14 Mar 2019 14:09:40 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: ou.quest-ce.net Message-ID: From: Yann Droneaud To: Mike Crowe , libc-alpha@sourceware.org Date: Thu, 14 Mar 2019 15:09:35 +0100 In-Reply-To: <47415e51fea8d960fc993cf0e0b8db6a19511d28.1551291557.git-series.mac@mcrowe.com> References: <47415e51fea8d960fc993cf0e0b8db6a19511d28.1551291557.git-series.mac@mcrowe.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.31.91 (3.31.91-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a01:e35:2e9f:6cb0:857c:11e6:3194:d53d X-SA-Exim-Mail-From: ydroneaud@opteya.com Subject: Re: [PATCH 2/7] nptl: Add POSIX-proposed sem_clockwait X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ou.quest-ce.net) Hi, Le mercredi 27 février 2019 à 18:23 +0000, Mike Crowe a écrit : > > diff --git a/sysdeps/pthread/semaphore.h > b/sysdeps/pthread/semaphore.h > index 41ff927..2e68b16 100644 > --- a/sysdeps/pthread/semaphore.h > +++ b/sysdeps/pthread/semaphore.h > @@ -59,6 +59,10 @@ extern int sem_wait (sem_t *__sem); > __THROW. */ > extern int sem_timedwait (sem_t *__restrict __sem, > const struct timespec *__restrict __abstime); > + > +extern int sem_clockwait (sem_t *__restrict __sem, > + clockid_t clock, > + const struct timespec *__restrict __abstime); Maybe it can be added with __nonnull ((3)) attribute ? > #endif > > /* Test whether SEM is posted. */ > diff --git a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist > b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist > index 931c827..454d340 100644 > --- a/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist > +++ b/sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist > @@ -245,6 +245,7 @@ GLIBC_2.3.4 pthread_attr_setaffinity_np F > GLIBC_2.3.4 pthread_getaffinity_np F > GLIBC_2.3.4 pthread_setaffinity_np F > GLIBC_2.3.4 pthread_setschedprio F > +GLIBC_2.30 sem_clockwait F Why is it only added to linux x86_64 ? Regards -- Yann Droneaud OPTEYA