switch master & slave; prompted by bluhm@
don't depend on /dev/tty, in bluhm's framework there is no such thinguse openpty(3) instead
various cleanups; david says results are same
convert everything to bsd.regress.mk
per man page and gcc 3.0.1, exit requires prototype from stdlib.h
while im here, remove -Wall warnings.
Regression tests for libc_r (pthreads) library.Thanks to pval@ for resolving the license stuff.