mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: posix-c99-c11 coverage
Date: Thu, 18 Dec 2014 23:52:58 +0100	[thread overview]
Message-ID: <20141218225258.GI5522@port70.net> (raw)
In-Reply-To: <20141218214447.GV4574@brightrain.aerifal.cx>

* Rich Felker <dalias@libc.org> [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


      reply	other threads:[~2014-12-18 22:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 21:30 Philippe Lavoie
2014-12-18 21:44 ` Rich Felker
2014-12-18 22:52   ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141218225258.GI5522@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).