summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread/uthread_init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add support for blocking thread switches during dlopen and othermarc2003-05-131-2/+8
| | | | | | | | non-thread-safe dl functions. Only enabled for ELF architectures at this time as needed dlxxx support has not yet been added to the a.out run time loader. 'doesn't break xmms at least' tedu@. Tested by others with no comment
* Part 1 of thread fd handling fixes. In the new scheme fd_table_entriesmarc2003-02-041-197/+155
| | | | | | | | | | | | | | | | | for dup-ed fds are shared to ensure proper flag handling. A refcnt was added to control when entries should be freed. Specific changes: close: don't free entry unless refcnt is zero dup: rewrite to use new function _thread_fd_table_dup dup2: rewrite to use new function _thread_fd_table_dup fcntl: use _thread_fd_table_dup uthread_fd: initialize thread fd table, searching for dup-ed fds. Add function to share _thread_fd_table entries when an fd is dup-ed. uthread_init: make it readable. Call fd init functions. All current regression tests plus the mysql torture test pass. The new stdfiles regression test fails (I/O redirection problem). Part 2 is intended to fix that problem
* Create a siginfo_t for thread-to-thread kill.marc2003-01-311-3/+3
| | | | | Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
* remove libc_r mention in commentmarc2003-01-201-4/+4
|
* 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-071-11/+93
| | | | | | 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.
* removes duplicate functions and factor out common code so the needed (butmarc2002-10-301-5/+7
| | | | | | | | 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-301-2/+5
| | | | | | | 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.
* account for the process signal mask when dealing with signals; testedfgsch2002-02-211-1/+7
| | | | a while ago by marc@ and brad@
* when alloc'ing the ready queue, make it big enough.fgsch2002-01-171-2/+2
|
* More changes from FreeBSD, including:fgsch2001-12-311-11/+19
| | | | | | | | | o Only poll file descriptors when needed. o Change the way timing is achieved, counting scheduling ticks instead of calculating the elapsed time via gettimeofday(). o Prevent an overflow when polling. o Use curthread instead of _thread_run. o Remove extra spaces; indent.
* More sync with freebsd code; join related code this time.fgsch2001-12-111-3/+3
|
* Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.fgsch2001-12-081-3/+3
| | | | make includes is needed in case you want to play.
* put changes back, this time ALL the files.fgsch2001-09-041-10/+10
|
* Back out fgsch@'s tree breaking commits.todd2001-08-301-10/+10
| | | | Test next time, ok?
* fix some const warnings.fgsch2001-08-301-10/+10
| | | | more sync with freebsd.
* More sync with FreeBSD.fgsch2001-08-291-68/+4
|
* uninitialised fieldsd2000-02-261-1/+3
|
* volatiled2000-01-061-3/+4
|
* sync with FreeBSDd1999-11-251-96/+113
|
* sync with FreeBSDd1999-05-261-10/+53
|
* pthread_cancel() and cancellation pointsd1999-01-171-1/+3
|
* export symbol to kernel thread for gdb; ident; fix lock initialisationd1999-01-101-6/+9
|
* rename linkage variable to match freebsdd1998-12-231-2/+3
|
* resource stats; force linkage with uthread_autoinit.c; name kern and init threadsd1998-12-211-0/+13
|
* split automatic init into own filed1998-12-101-18/+0
|
* sync with freebsdd1998-11-201-8/+8
|
* sync with FreeBSD (rwlock, gc thread, man pages)d1998-11-091-13/+22
| | | | | | | add (broken) mips md stuff fix some const warnings add sigaltstack() stub another hash at getting shlib auto-init to work (mips/elf and i386/a.out)
* experimental threaded libc - kernel onlyd1998-08-271-0/+308