X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tab_posix.sh;h=30f97bed59a7e31f704a996364dd0949e8acb828;hb=36f753d68a5defce9c6f23218b6aad9000ce062a;hp=d8704243061ee8be492e12c55ccbbfc899408768;hpb=1f1533550ec7771be11ee2206b80960b7a0f717d;p=musl-tables diff --git a/tab_posix.sh b/tab_posix.sh index d870424..30f97be 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 { @@ -14,7 +15,7 @@ BEGIN { 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 } @@ -46,7 +47,7 @@ BEGIN { legend = legend "
  • p - function prototype" legend = legend "
  • x - external and forward variable declaration" legend = legend "" - 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 @@ -79,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++)