Commit Briefs
libthread: simplify
Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355.
libthread: add threadmaybackground
Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
libthread: use consistent stack calculation code in makecontext
Also reduce duplication: makecontext is per-arch not per-os-arch. May fix #353.
libthread: remove Linux 2.4 code
Linux.c was for Linux 2.4 and is no longer used directly, only indirectly because NetBSD.c was a 1-line file #including Linux.c. So mv Linux.c NetBSD.c. Also rm Linux-*-asm.s which was for Linux 2.4 as well.
libthread: rm FreeBSD 4 code
Pretty sure FreeBSD 4 is gone now. :-)
openbsd updates (thanks Pascal Stumpf)
R=rsc http://codereview.appspot.com/6401049
build: OS X 64-bit build
R=rsc http://codereview.appspot.com/4838047