X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tab_posix.sh;h=8477c390077bf9478f12b5e2908a8443bdadb0c2;hb=46644c40de1b809b88fc1abd8fe19f9ffa955bff;hp=7be1ac26a341d657bafc70a785fc9f576949df1e;hpb=f27b79f598234ec439af4eb8f023e8e4db915fae;p=musl-tables diff --git a/tab_posix.sh b/tab_posix.sh index 7be1ac2..8477c39 100755 --- a/tab_posix.sh +++ b/tab_posix.sh @@ -9,7 +9,7 @@ BEGIN { hash = $2 getline - commit = "

commit

commit " hash "" + commit = "

commit

commit " hash "" while (getline == 1) commit = commit "
" $0 @@ -25,7 +25,7 @@ BEGIN { if ($2 ~ /bits\//) s = $3 " " else - s = "" $3 " " + s = "" $3 " " kind[$1] = kind[$1] $3 kindstr[$1] = kindstr[$1] s } @@ -47,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)

    (STREAMS and posix_trace* api is excluded)" + legend = legend "

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

    musl vs posix api

    " print commit @@ -80,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++)