+ Convert to ANSI-C function definitions + style(9) Submitted by: kris
some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD