Correct retrieval of stack address and size when getting the current
thread attributes for the main thread.
Add emulation of native threads (libc_r) method of getting the current
thread attributes (pthread_attr_get_np()) and adjust emulation of native
threads pthread_attr_getstackaddr() to return bottom of stack instead of
top of stack.
Correct emulation of native threads pthread_mutexattr_settype() when
selecting recursive mutexes. Previously, the argument conversion before
calling the linuxthreads version of pthread_mutexattr_setattr() ended up
selecting errorcheck mutexes instead of recursive mutexes.
Check for NO_PIC and NO_PROFILE on FreeBSD >= 6.0.
Add sys/_pthreadtypes.h to allow compilation on FreeBSD >= 6.0.
Initialize signal trampoline variables earlier to avoid race in wrapper
around sigaction.
Fix known API wrapper bugs.
Port compile time options:
Add option for using an alternate restart signal instead of SIGUSR2.
Add options for adjustment of maximum thread stack size and maximum
number of threads.
Make all options start with LINUXTHREADS_
Note that complete FreeBSD source matching userland must be installed
in /usr/src when compiling this port.
Add new experimental option, LINUXTHREADS_WRAP_API, that adds wrapper
functions providing most of the native threads API while avoiding name
clashes by transparently prefixing all function names that directly
provide the linuxthreads API.