X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tab_posix.sh;h=30f97bed59a7e31f704a996364dd0949e8acb828;hb=186983d4990fadaff812ac236f262f80d803b941;hp=2dd26f78d512192a5d959db728b2311f4a0b159e;hpb=a4341ee7277caff8b3334c87541f6d093d225b86;p=musl-tables
diff --git a/tab_posix.sh b/tab_posix.sh
index 2dd26f7..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
}
@@ -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)"
-# legend = legend "- A - symbol value is absolute"
-# legend = legend "
- B - symbol is in the uninitialized data section (known as BSS)"
legend = legend "
- C - symbol is common (uninitialized data)"
legend = legend "
- D - symbol is in the initialized data section"
-# legend = legend "
- G - symbol is in the initialized data section for small objects"
-# legend = legend "
- I - indirect reference to another symbol"
-# legend = legend "
- N - debugging symbol"
legend = legend "
- R - symbol is in the read only data section"
-# legend = legend "
- S - symbol is in the uninitialized data section for small objects"
legend = legend "
- T - symbol is in the text section"
-# legend = legend "
- U - undefined symbol"
legend = legend "
- V - weak object"
legend = legend "
- W - weak symbol"
legend = legend "
decl: kind of declaration as found by `ctags -R include` (every occurance is reported)"
@@ -53,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
@@ -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++)
|