From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10650 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Sabogal Newsgroups: gmane.linux.lib.musl.general Subject: Re: Header conformance/improvements Date: Thu, 20 Oct 2016 19:19:50 -0400 Message-ID: References: <20161020213058.GT19318@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477005609 32286 195.159.176.226 (20 Oct 2016 23:20:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 23:20:09 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10663-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 21 01:20:05 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bxMd1-0007dX-Uz for gllmg-musl@m.gmane.org; Fri, 21 Oct 2016 01:20:04 +0200 Original-Received: (qmail 15802 invoked by uid 550); 20 Oct 2016 23:20:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15777 invoked from network); 20 Oct 2016 23:20:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MA9RkT9uMHgivdYGG5U8+4vJm3ONHThvoNgBaDRreUY=; b=Fdo/m/hvnRDstGzNYn49g2JNFpz4hQcD5LfK8BSYg7oO+CWkEssxnvfbFD792SD5y8 YsIH2GFfIRtzLDpgwxM7Q4fwXMGAJIvK7ZU86icWMyl+t/ojDbEnRipxgP+dS/HVxl8V MydBZrCqPhpdloBRzzKQ2blmt1qtJfQhZsL5Egsl9noIwNZUnBTyGel9a264v5b67axW JqFR41ntVCPofCY0Mah4GWF8aNT8Ol8DS16CP7gpnUlvkbiC3/miuRdIx4VQSMywwYE7 N0u06di3tDKlnX7xhS9+fL/3Bnqf7QQL6KmQ7liFxeM4RxFrFaCI3it8o+FiudwQzogz 0VHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=MA9RkT9uMHgivdYGG5U8+4vJm3ONHThvoNgBaDRreUY=; b=GSejrRRr7UGY/xdtz5opMhiZzDoFxsp4ecQPU4m81Aul7cMwhdeyO0F5De21yA+asc AglotE06kiv7o666PINIHP4i9uHTgdztbBiSp9il1OZS2ivR+569fq2gkn5EpIJu9pRi 121rFRpcvfN3HoHa4/XnnTxYJ/ZckmjlyjlK7voJeuff2RiNQccnZHF1VJsXZCPjpQUR aDbLKtwrpbFtXYkcJutdDiv4v2dTGXTKKn85MSwvk+gkk/jOp90hGcHk7Pzlsbuwfakd CRogGlWU9AUaqOSyAprlo/UsI0fr3yLbuZqlk2Nr1lWqZxmiIg/vaMNexLriqs61AGGe phpA== X-Gm-Message-State: ABUngvegZ13c0vgMfojV/sv9o95dXcl4yxmFy3tQqHUQlwrTYBfadtE+GwGgfGTnvTDLSKYUUsAvD1rYDyHs/A== X-Received: by 10.157.47.232 with SMTP id b37mr1281871otd.67.1477005591484; Thu, 20 Oct 2016 16:19:51 -0700 (PDT) In-Reply-To: <20161020213058.GT19318@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10650 Archived-At: On Thu, Oct 20, 2016 at 5:30 PM, Rich Felker wrote: > On Tue, Oct 11, 2016 at 06:44:14PM -0400, Daniel Sabogal wrote: >> namespace/feature testing >> ------------------------- >> sys/time.h:13-29: sys/time.h - XSI header > > Not sure what you mean here. If the whole header is XSI there's no > obligation to check FTMs; a conforming non-XSI program doesn't include > it. Sorry, I should have been more descriptive with this one. The issue here is that there are unnecessary checks for _XOPEN_SOURCE. >> misc >> ---- >> stdlib.h:155-8: >> glibc provides locale_t under _GNU_SOURCE. maybe it should >> be provided and used in place of struct __locale_struct. > > Do you have in mind a scenario where this would be useful, i.e. where > you might need locale_t to be defined but not have included another > header that defines it? I was really only thinking along the lines of keeping it consistent with how all other headers provide locale_t via __NEED_locale_t. I don't believe there are any real benefits and that any software package already doing this should be easily patch-able. >> string.h:88: >> gcc generates an implicit-function-declaration warning from alloca >> when using strdupa. aside: glibc also provides strndupa. > > We discussed making this definition depend on __GNUC__ and then it > could use __builtin_alloca and GCC extensions needed to make strndupa > work. There might be an old patch floating around to do something like > that. OK.