From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6736 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: posix-c99-c11 coverage Date: Thu, 18 Dec 2014 23:52:58 +0100 Message-ID: <20141218225258.GI5522@port70.net> References: <75998CB0C96A7840A88C8E5E80A1923001CB7D77E7@MAIL2.octasic.com> <20141218214447.GV4574@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1418943196 27226 80.91.229.3 (18 Dec 2014 22:53:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2014 22:53:16 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6749-gllmg-musl=m.gmane.org@lists.openwall.com Thu Dec 18 23:53:12 2014 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Y1jwV-0002zh-M9 for gllmg-musl@m.gmane.org; Thu, 18 Dec 2014 23:53:11 +0100 Original-Received: (qmail 21983 invoked by uid 550); 18 Dec 2014 22:53:10 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21975 invoked from network); 18 Dec 2014 22:53:10 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20141218214447.GV4574@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:6736 Archived-At: * Rich Felker [2014-12-18 16:44:48 -0500]: > On Thu, Dec 18, 2014 at 09:30:42PM +0000, Philippe Lavoie wrote: > > > > Is there a script or test suite (libc-test?) to generate the tables? > > I think they're generated from the code in this repo: > > http://nsz.repo.hu/git/?p=musl-tables;a=tree > these are messy shell+awk scripts (never intended for others to look at it) basic idea: - data dir has c99, c11 and posix2008 api list (tab separated values, c api is from annex b of the iso pdf, posix api is from the downloadable html) - defined symbols in libc.a are listed with nm - declared symbols in headers are listed with ctags (this is not perfect, will parse all ifdef branches etc and i try to check the prototypes too which is hard) - musl syms are compared to the api lists furthermore libc-test has an api test which does check function prototypes properly for all posix functions (but there is no nice report about it) and i have some scripts to test posix namespace violations using ctags data and the posix namespace rules which i collected here: http://port70.net/~nsz/c/posix/ hope this helps