summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/wraputhread.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correct retrieval of stack address and size when getting the currentTor Egge2007-03-211-3/+19
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=187943
* Check for NO_PIC and NO_PROFILE on FreeBSD >= 6.0.Tor Egge2005-07-221-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=139916
* Add new experimental option, LINUXTHREADS_WRAP_API, that adds wrapperTor Egge2003-06-091-49/+1585
| | | | | | | | | functions providing most of the native threads API while avoiding name clashes by transparently prefixing all function names that directly provide the linuxthreads API. Notes: svn path=/head/; revision=82560
* Update from version 2.1.3 to 2.2.3 of LinuxThreads.Tor Egge2001-06-141-1/+9
| | | | Notes: svn path=/head/; revision=43965
* Initialize attributes for new threads with default values when a NULLTor Egge2001-02-201-0/+191
pthread_attr_t is provided as argument to pthread_create. liblgcc_r_pic.a no longer exists. Put the liblgcc_r.a version of __get_eh_info() and __register_frame_info() into the shared linuxthreads library to avoid using the incompatible libgcc.a version. Shared libraries that use exceptions still represent a problem if linked before the linuxthreads library. Compile liblgcc_r.a before the main linuxthreads library to provide the object files that contains __get_eh_info() and __register_frame_info(). Add minimal wrappers for native thread library functions used by 5.0-CURRENT libc. The wrappers try to call corresponding functions in the linuxthreads library after performing argument conversion. Notes: svn path=/head/; revision=38495