X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tab_posix.sh;h=8477c390077bf9478f12b5e2908a8443bdadb0c2;hb=daa2dea5fb8276806608b514001246b14374e058;hp=2dd26f78d512192a5d959db728b2311f4a0b159e;hpb=a4341ee7277caff8b3334c87541f6d093d225b86;p=musl-tables diff --git a/tab_posix.sh b/tab_posix.sh index 2dd26f7..8477c39 100755 --- a/tab_posix.sh +++ b/tab_posix.sh @@ -1,6 +1,7 @@ #!/bin/sh export LC_ALL=C +MUSL=${MUSL:-../musl} ( cd $MUSL; git log -n1 ) | awk ' BEGIN { @@ -8,13 +9,13 @@ BEGIN { hash = $2 getline - commit = "

commit

commit " hash "" + commit = "

commit

commit " hash "" while (getline == 1) commit = commit "
" $0 FS = "\t" - posix = "data/posix2008" + posix = "data/posix2008.ok" syms = "data/musl.syms" tags = "data/musl.tags" @@ -24,7 +25,7 @@ BEGIN { if ($2 ~ /bits\//) s = $3 " " else - s = "" $3 " " + s = "" $3 " " kind[$1] = kind[$1] $3 kindstr[$1] = kindstr[$1] s } @@ -35,17 +36,10 @@ BEGIN { legend = legend "

  • nodecl - symbol is in libc.a but not declared in a public header" legend = legend "
  • missing - neither in include files (see decl) nor in libc.a (see sym)" legend = legend "
  • sym: external symbol kind as found by `nm libc.a` (symbol kind only reported once)
  • decl: kind of declaration as found by `ctags -R include` (every occurance is reported)" - legend = legend "

    (any option mark found in the synopsis of a manual is listed in the option column, this is often wrong)" + legend = legend "

    (STREAMS and posix_trace* apis are excluded)" print "

    musl vs posix api

    " print commit @@ -86,8 +80,11 @@ BEGIN { s = s "" $1 "" n = split($2, x, " ") s = s "" - for (i = 1; i <= n; i++) - s = s " " x[i] "" + for (i = 1; i <= n; i++) { + h = x[i] + gsub(/\//, "_", h) + s = s " " x[i] "" + } n = split($3, x, " ") s = s "" for (i = 1; i <= n; i++)