update tables (wcs* changes and some more)
[musl-tables] / tab_posix.sh
index 9460da9..30f97be 100755 (executable)
@@ -15,7 +15,7 @@ BEGIN {
 
        FS = "\t"
 
-       posix = "data/posix2008"
+       posix = "data/posix2008.ok"
        syms = "data/musl.syms"
        tags = "data/musl.tags"
 
@@ -47,7 +47,7 @@ BEGIN {
        legend = legend "<li>p - function prototype"
        legend = legend "<li>x - external and forward variable declaration"
        legend = legend "</ul></ul>"
-       legend = legend "<p>(any option mark found in the synopsis of a manual is listed in the option column, this is often wrong)"
+       legend = legend "<p>(STREAMS and posix_trace* apis are excluded)"
 
        print "<h3>musl vs posix api</h3>"
        print commit
@@ -80,8 +80,11 @@ BEGIN {
                s = s "<td><a href=\"http://pubs.opengroup.org/onlinepubs/9699919799/functions/" $1 ".html\">" $1 "</a>"
                n = split($2, x, " ")
                s = s "<td>"
-               for (i = 1; i <= n; i++)
-                       s = s " <a href=\"http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/" x[i] ".html\">" x[i] "</a>"
+               for (i = 1; i <= n; i++) {
+                       h = x[i]
+                       gsub(/\//, "_", h)
+                       s = s " <a href=\"http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/" h ".html\">" x[i] "</a>"
+               }
                n = split($3, x, " ")
                s = s "<td>"
                for (i = 1; i <= n; i++)