From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 4AFEE39CE1C6 for ; Thu, 29 Jul 2021 15:29:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4AFEE39CE1C6 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=systematicsw.ab.ca Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id 96kdmiNi44bIn97ytmw38y; Thu, 29 Jul 2021 15:29:55 +0000 Received: from [192.168.1.104] ([68.147.0.90]) by cmsmtp with ESMTP id 97ytmsgGgM8ol97ytmpqxb; Thu, 29 Jul 2021 15:29:55 +0000 X-Authority-Analysis: v=2.4 cv=Ua6U9IeN c=1 sm=1 tr=0 ts=6102c973 a=T+ovY1NZ+FAi/xYICV7Bgg==:117 a=T+ovY1NZ+FAi/xYICV7Bgg==:17 a=IkcTkHD0fZMA:10 a=uZvujYp8AAAA:8 a=uYT-Tk0qkVT609LjNaIA:9 a=QEXdDO2ut3YA:10 a=SLzB8X_8jTLwj6mN0q5r:22 Reply-To: newlib@sourceware.org To: newlib@sourceware.org References: <20210724083730.16959-1-mfjoyce2004@gmail.com> <20210724083730.16959-2-mfjoyce2004@gmail.com> <57f33efa-2450-ac5c-3ceb-be8beb183ca5@SystematicSw.ab.ca> From: Brian Inglis Organization: Systematic Software Subject: Re: [PATCH 1/1] libc: Added implementations and prototypes for Message-ID: Date: Thu, 29 Jul 2021 09:29:55 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfFdn3E6hF6e4QVWSGRND/Ex59uwFwtX+KU8Dde2lHplGx7W9aGMB6cr5CNyIAJROrPmP5zsGLiP3o606DU1jxDpNNpvQMYttzPGXtpb9madKAblVgFxb tji6fCQp8nKGGTwngIjoICnpQiu7NON7kcYKz4VqhqZ2UsVMI/sKnFTOVMFVp7a3WKRVvBIt1choYauouYBGR2z2+S4yXXTFEiE= X-Spam-Status: No, score=-1161.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2021 15:29:57 -0000 On 2021-07-29 03:23, Corinna Vinschen wrote: > On Jul 28 15:13, Joel Sherrill wrote: >> On Wed, Jul 28, 2021, 2:54 PM C Howland wrote: >>>> On Wed, Jul 28, 2021 at 1:46 PM Corinna Vinschen wrote: >>>>> On Jul 28 09:25, Brian Inglis wrote: >>>>>> On 2021-07-28 03:11, Corinna Vinschen wrote: >>>>>>> On Jul 24 10:37, Matt Joyce wrote: >>>>>>>> +#if __GNU_VISIBLE >>>>>>> What we need, in fact, is a __POSIX_VISIBLE guard, but >>>>>>> here's the problem: As far as I can see, the Issue 8 >>>>>>> draft does not yet define a version number. >>>>>>> If anybody has better information or a good idea how to >>>>>>> guard this new API in the meantime, I'm all ears. >>>>>> Current values are: >>>>>> >>>>>> __POSIX_VISIBLE 199009 >>>>>> __POSIX_VISIBLE 199209 >>>>>> __POSIX_VISIBLE 199309 >>>>>> __POSIX_VISIBLE 199506 >>>>>> __POSIX_VISIBLE 200112 >>>>>> __POSIX_VISIBLE 200809 >>>>>> __POSIX_VISIBLE 201402 > > Where did you find the latter one? Per the Open Group docs > https://pubs.opengroup.org/onlinepubs/9699919799/ the latest valid value > for _POSIX_C_SOURCE is still 200809, even with POSIX.1-2017. Searched all installed include files for all __POSIX_VISIBLE date expressions [Paste As Quotation avoids wrapping commands and output]: > $ grep '__POSIX_VISIBLE.*[12][90][0-9][0-9][01][0-9]' /usr/{,*86*/sys-root/*/}include/**/*.h To answer your question: > $ grep '__POSIX_VISIBLE.*2014' /usr/{,*86*/sys-root/*/}include/**/*.h > /usr/include/pthread.h:#if __XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112 || __cplusplus >= 201402L I used sed to extract and standardize so I could sort -u to get the list, which I saved and added a few comments to: > /* POSIX-version-dates.h - POSIX dates found in headers and related standards */ > > #define __POSIX_VISIBLE 199009 /* Issue 1 */ > #define __POSIX_VISIBLE 199209 /* Issue 2 */ > #define __POSIX_VISIBLE 199309 /* Issue 3 UNIX 93 */ > #define __POSIX_VISIBLE 199506 /* Issue 4 SUS V1 UNIX 95 XPG4 COSE Spec 1170 */ > #define __POSIX_VISIBLE 200112 /* Issue 5 SUS V3 UNIX 03 */ > #define __POSIX_VISIBLE 200809 /* Issue 6 SUS V4 */ > #define __POSIX_VISIBLE 201402 /* Issue 7 SUS V4 TC1 UNIX V7 */ > #define __POSIX_VISIBLE 202202? /* Issue 8 SUS V5? UNIX V8? */ -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.]