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 ... >/fd/2
13 files=`{grep -il '[ ]\*?'$i'\(' /sys/man/2/*}
15 {echo .nr LL 20i; sed -n '/^.SH SYNOPSIS/,/^.SH.*DESCR/p' $j } |
25 grep -i -e '[ *]'$i'\(' | sed 's/^[ +]/ /'