From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id 613BB388C013 for ; Tue, 9 Mar 2021 20:12:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 613BB388C013 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-581-icFIjL05MG2ssfibfXyvpw-1; Tue, 09 Mar 2021 15:12:39 -0500 X-MC-Unique: icFIjL05MG2ssfibfXyvpw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4B9341923763; Tue, 9 Mar 2021 20:12:37 +0000 (UTC) Received: from [10.3.112.36] (ovpn-112-36.phx2.redhat.com [10.3.112.36]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF1095D6D7; Tue, 9 Mar 2021 20:12:36 +0000 (UTC) Subject: Re: SIGSTKSZ is now a run-time variable To: shwaresyst , bruno@clisp.org, cbouchar@redhat.com, bug-m4@gnu.org, libc-alpha@sourceware.org, austin-group-l@opengroup.org References: <832918739.1734727.1615306471320.ref@mail.yahoo.com> <832918739.1734727.1615306471320@mail.yahoo.com> From: Eric Blake Organization: Red Hat, Inc. Message-ID: Date: Tue, 9 Mar 2021 14:12:35 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2021 20:12:43 -0000 On 3/9/21 1:34 PM, Eric Blake via austin-group-l at The Open Group wrote: > On 3/9/21 10:14 AM, shwaresyst wrote: >> >> To me that looks like a conformance violation and should be reverted. There is no _SC_SIGSTKSZ defined in by the standard, to begin with, so that use of sysconf() is a non-portable extension on its own. > > Portable apps can't use _SC_SIGSTKSZ, but the standard generally permits > implementations to define further constants. Then again, re-reading XSH > 2.2.2: > > " Implementations may add symbols to the headers shown in the following > table, provided the identifiers for those symbols either: > > Begin with the corresponding reserved prefixes in the table, or > ..." > > but the table lacks a row for with _CS_* and _SC_* constants. > Looks like you found an independent defect. Not quite, because later it states "The following identifiers are reserved regardless of the inclusion of headers: 1. With the exception of identifiers beginning with the prefix _POSIX_, all identifiers that begin with an and either an uppercase letter or another are always reserved for any use by the implementation.", so an implementation can blindly add _SC_* constants at will without violating the standard. Still, I opened: https://www.austingroupbugs.net/view.php?id=1456 to try and add some clarification. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org