1 #!/usr/local/plan9/bin/rc
3 # prints out function signatures by grepping the manual
6 *=`{echo $*|tr A-Z a-z|tr -dc 'a-z0-9_ \012'} # fold case, delete funny chars
8 echo Usage: sig function ... >[1=2]
19 files=`{grep -il '[ ]\*?'$i'\(' $PLAN9/man/man3/*.3*}
21 {echo .nr LL 20i; 9 sed -n '/^.SH SYNOPSIS/,/^.SH.*DESCR/p' $j } |
31 grep -i -e '[ ]\*?'$i'\(' | sed 's/^[ +]/ /'
33 { path=$noplan9; man 2 $i; man 3 $i } >[2]/dev/null | nobs | sed -n '
43 ' | grep -i -e '[ ]\*?'$i'\(' | sed 's/^[ +]/ /'