summaryrefslogtreecommitdiffstats
path: root/lib/libpthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow the fetching of current stack info from threaded apps.marc2003-01-201-4/+36
| | | | | This is necessary for alpha setjmp. The alpha setjmp/longjmp regression tests pass with -pthread with this change
* Use the sources that exist in sibdirs of libpthread, not libc_rmarc2003-01-206-30/+26
|
* return (func(...)) not needed when the current function and funcmarc2003-01-192-5/+11
| | | | | | are both void. The select call is a cancellation point per IEEE Std 1003.1-2001. This should fix a problem espie@ found in kde.
* make it compilemickey2003-01-161-1/+3
|
* Bye-bye libc_r. libc_r and libnpthread go away. libpthreadmarc2003-01-141-5/+3
| | | | | | | | | | | | takes their place. The -pthread option to gcc uses libpthread. ppc portion of patch from drahn@ (thanks). gcc portions of patch OK espie@. Ports testing (no bad effects!) by naddy@ best build sequence is: build gcc, build system, build ports remove /usr/lib/lib{c_r,npthread}.*. Note, once libc_r and libnpthread is removed threaded ports will stop working until they have been re-built using the libpthread and the updated gcc. That's why the above build sequence is recommended.
* use ldl_l/stl_c instead of ldq_l and ldq_c as _spinlock_lock_tmarc2002-12-121-3/+6
| | | | | is defined as an int. This solves several alpha/pthread problems as repoted by various ports people.
* add a debugging function not normally calledmarc2002-12-112-3/+63
|
* remove unused data member from pthread_cond.marc2002-12-081-2/+1
|
* Crank all library major numbers. Needed due to the fact that wemillert2002-12-031-2/+2
| | | | | | | | now build libraries with propolice enabled. Without this, existing binaries (such as ports/packages) that link with any system library other than libc will fail with an undefined symbol of "___guard" (__guard on ELF). Pointed out by markus@ and discussed with deraadt@
* Foward; torh@bogus.netderaadt2002-11-291-2/+2
|
* Add strerror_r and functions versions of getchar_unlocked andmarc2002-11-211-1/+1
| | | | putchar_unlocked. Crank the minor on related libs. OK fgs@, deraadt@
* Enable libpthread, kind of....marc2002-11-161-3/+5
| | | | | | | | | The library is installed as libnpthread, not libpthread. This gets around broken autoconf ports that attempt to link using both -lpthread and -pthread. The next step will be to change the gcc -pthread flag to use this lib instead of libc_r.
* get rid of compiler warningsmarc2002-11-123-6/+6
|
* don't build with -g/-ggdb by default.marc2002-11-122-4/+4
| | | | | always build with -Wall bump version to 0.7 (matches libc_r x.7)
* Fix the C version of atomic lock so that the compiler will not sharedrahn2002-11-121-3/+4
| | | | registers. ok marc@
* remove unused manpages (already in libc) and reorder SEE ALSO; marc@ ok.fgsch2002-11-093-78/+2
|
* kill two compiler warnings; ok marc@todd2002-11-081-4/+6
|
* Do not try to initialize entries in the fd table before the tablemarc2002-11-081-10/+1
| | | | is created.
* Add needed table of strong functions that override weak functionsmarc2002-11-072-22/+97
| | | | | | in libc so static linking works with -lpthreads. There is a (linker?) problem that still shows up with static -pthread, though. Solution to problem from freebsd.
* type func(...) -> type\nfunc(...) for function definitionsmarc2002-11-0712-24/+36
|
* thread safe libc -- 2nd try. OK miod@, millert@marc2002-11-054-35/+26
| | | | Thanks to miod@ for m68k and vax fixes
* test locks against _SPINLOCK_UNLOCKED, not 0. _SPINLOCK_UNLOCKED ismarc2002-11-041-4/+7
| | | | not zero on all arches
* back out previous patch.. there are still some vax/m68k issuesmarc2002-11-034-26/+35
|
* libc changes for thread safety. Tested on:marc2002-11-034-35/+26
| | | | | | | alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
* Include string.h to get memcpy() prototype; OK marc@millert2002-11-021-1/+2
|
* Working atomic locks on vax for libc_r.miod2002-11-011-2/+30
| | | | ok marc@
* md part for hppa should look like this, at the first lookmickey2002-11-012-1/+158
|
* removes duplicate functions and factor out common code so the needed (butmarc2002-10-303-480/+231
| | | | | | | | missing) _thread_fd_unlock_owned function can be added with minimal pain. The incorrect special handling of the stdio fds was also removed. Tested with the libc_r regression tests and the mysql regression tests. No complaints from any developers
* signal handling changes. This corrects several signalmarc2002-10-3011-243/+253
| | | | | | | handling errors in the threads library. Most of the libc_r regression tests are now ok. thread specific kill semantics are still not correct. No negative comments after posting to tech@ a week or so ago. siginfo test fails on sparc64 due to sparc64 oddity.
* Check for null pointer before deref in info output. Based uponmarc2002-10-212-9/+16
| | | | | a freebsd patch forwarded to me by millert@ (thanks!). Change also applied to uthread_info.c even though we do not use it
* remove unused/unreferenced code.marc2002-10-1110-86/+10
| | | | ok fgs@
* handle the SA_RESETHAND flag.marc2002-10-071-2/+10
| | | | | Part of the prep for SA_SIGINFO support. With this change the new siginfo regression test will fail instead of loop on all arches.
* remove erroneous commentmarc2002-09-121-3/+2
|
* fix comment.brad2002-08-251-2/+4
| | | | | -- Ok'd by: jason@
* 'sez' is not an english word; ok deraadt@jsyn2002-07-101-2/+2
|
* sync with libc_r (NOPOLL no longer needed)marc2002-06-171-3/+5
|
* Implement _atomic_lock in assembler to make it more readable.art2002-06-062-37/+19
| | | | | | plus some various assembler improvements. Tested by various people a few months ago and in my tree for almost 6 months now.
* spelling; raj@cerias.purdue.eduderaadt2002-06-042-5/+5
|
* Cast u_int64_t explicitly, not long. (cosmetic)art2002-05-101-4/+5
|
* return EBUSY, not EWOULDBLOCK for error when calling thread would blockpvalchev2002-05-071-3/+3
| | | | for pthread_rwlock_wrlock & sie says Single Unix Specification; ok fgs
* Make sure calls to pthread_cancel() do not take effect if the targetpvalchev2002-05-071-3/+5
| | | | thread is already exiting, from archie@FreeBSD, ok fgs
* o) start new sentence on a new line;mpech2002-05-0125-131/+176
| | | | | | | o) always close .Bl tags; o) fix usage of .Xr; millert@ ok
* Initial cleanup:mpech2002-04-306-14/+13
| | | | | | | | | | | | o) remove extra space in the end of line; o) remove extra blank lines in the end of file; o) remove .Pp before .Ss; o) CAVEAT -> CAVEATS; o) fix usage of .Fa; o) <blank-line> -> .Pp; o) wrap long lines; millert@ ok
* ANSI'fy.fgsch2002-03-071-10/+5
|
* From FreeBSD:fgsch2002-03-072-3/+6
| | | | | Properly clear the status of a join operation if the joining thread is canceled or the joinee is detached.
* account for the process signal mask when dealing with signals; testedfgsch2002-02-215-25/+99
| | | | a while ago by marc@ and brad@
* correct .Xr's.fgsch2002-02-211-3/+3
|
* Use .St for standards. Random cleanups as well.fgsch2002-02-2128-124/+169
|
* When cleanup_routine is called... also use .St to reference standards.fgsch2002-02-211-5/+5
|
* Xr pthread_kill; from fries@fgsch2002-02-211-1/+2
|