From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10649 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Header conformance/improvements Date: Thu, 20 Oct 2016 17:30:58 -0400 Message-ID: <20161020213058.GT19318@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1476999078 10357 195.159.176.226 (20 Oct 2016 21:31:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2016 21:31:18 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10662-gllmg-musl=m.gmane.org@lists.openwall.com Thu Oct 20 23:31:15 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 1bxKvf-0001uS-M3 for gllmg-musl@m.gmane.org; Thu, 20 Oct 2016 23:31:11 +0200 Original-Received: (qmail 20290 invoked by uid 550); 20 Oct 2016 21:31:11 -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 20269 invoked from network); 20 Oct 2016 21:31:10 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10649 Archived-At: On Tue, Oct 11, 2016 at 06:44:14PM -0400, Daniel Sabogal wrote: > Here's a list of observations from musl's headers. > > namespace/feature testing > ------------------------- > dirent.h:36-7: (seek|tell)dir - XSI > grp.h:32-4: (get|end|set)grent - XSI > pwd.h:30-2: (set|end|get)pwent - XSI Fixing. > stdlib.h:103: mkostemp - GNU POSIX-future, so no change. > sys/stat.h:82,85: mknod[at] - XSI Fixing. > 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. > time.h:121: tzname - base, not XSI > unistd.h:113,116: setre(uid|gid) - XSI Fixing. > wchar.h:70: wcswcs - issue 6 XSI and wcs[a-z], but removed Leaving it alone for now since it's in a reserved namespace, but we can revisit this desired. > 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? > 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. > parameter names > --------------- > grp.h:37: stream > ifaddrs.h:27,28: ifp, ifap > stdlib.h:42: alignment, size > sys/xattr.h:16,19: filedes > threads.h:78: key > wchar.h:56,168: n Fixing. > typos > ----- > sys/param.h:10: CANBSIZE -> CANBSIZ > utmpx.h:41: | -> || Fixing. Rich