summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Instead of ifdef around ENOTSUP, move it to pthread_private.h and makefgsch2002-01-196-28/+12
| | | | it EOPNOTSUPP.
* From FreeBSD: correct priority handling.fgsch2002-01-192-5/+9
|
* From FreeBSD: sem_XXX implementation; manpages comming in a bit.fgsch2002-01-182-1/+249
|
* when alloc'ing the ready queue, make it big enough.fgsch2002-01-171-2/+2
|
* Change 1st arg in pthread_attr_getdetachstate to const.fgsch2002-01-101-2/+3
|
* From FreeBSD: fix conversion from msec to timespec.fgsch2002-01-101-3/+3
|
* comment out the pending signals check by now; it was not suppose to befgsch2002-01-041-1/+3
| | | | there yet.
* fpathconf(2) returns long.fgsch2002-01-021-2/+2
|
* More changes from FreeBSD, including:fgsch2001-12-316-310/+296
| | | | | | | | | 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.
* call pthread_sigmask() instead of having the code twice.fgsch2001-12-301-47/+3
|
* From FreeBSD:fgsch2001-12-201-7/+5
| | | | | | When cancelling a thread while in a join operation, do not detach the target thread of the join operation. This allows the cancelled thread to detach the target thread in its cancellation handler.
* sync with freebsd.fgsch2001-12-201-71/+184
|
* More sync.fgsch2001-12-195-44/+123
|
* Allow the scheduler to return to the signal handler and the signalmarc2001-12-182-8/+19
| | | | | | handler to return instead of calling sigreturn directly. This works around an apparent bug in sparc sigreturn handling. ok fgs@ and noone else has bitched
* More sync with freebsd code; join related code this time.fgsch2001-12-1110-146/+216
|
* sync with freebsd.fgsch2001-12-081-2/+3
|
* Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.fgsch2001-12-087-91/+140
| | | | make includes is needed in case you want to play.
* a better fix for recursive mutex.fgsch2001-11-121-16/+4
|
* This fixes the recursive mutex problem with pthreads.marc2001-11-121-2/+14
| | | | | | fgs@ says their is a better fix... if so he can back these changes out and apply his fix at his convenience. In the meanwhile we'll have mutexen that work.
* Fix problem found by espie (and other porters) wheremarc2001-11-091-1/+17
| | | | | | | | | | system(...) hangs forever. From a comment in the fix: * Note: a thread calling wait4 may have its state changed to waiting * until awakened by a signal. Also note that system(3), for example, * blocks SIGCHLD and calls waitpid (which calls wait4). If the process * started by system(3) doesn't finish before this function is called the * function will never awaken -- system(3) also ignores SIGINT and SIGQUIT.
* Don't change the state of a thread as a result of a signal that ismarc2001-11-051-4/+7
| | | | | masked by that thread. This fixes the problem found with the signal regression test.
* Fix signal dispatching. No-one has reported any probs (other thanmarc2001-11-021-3/+3
| | | | | with regression tests that need to be fixed) and fgs@ thinks it's OK. I'll look at the pthreads regression tests, next
* Use _waitq_remove() and _waitq_insert() always; from FreeBSD.fgsch2001-09-042-27/+5
|
* put changes back, this time ALL the files.fgsch2001-09-048-43/+131
|
* Back out fgsch@'s tree breaking commits.todd2001-08-308-131/+43
| | | | Test next time, ok?
* fix some const warnings.fgsch2001-08-308-43/+131
| | | | more sync with freebsd.
* More sync with FreeBSD.fgsch2001-08-292-98/+186
|
* More syncing with FreeBSD, preparing for a commit.fgsch2001-08-261-10/+94
|
* Start syncing with FreeBSD:fgsch2001-08-2138-259/+345
| | | | | | | | | | o Implement _get_curthread() and _set_curthread(). Use it where possible. o Add missing _thread_[enter|leave]_cancellation_point(). o Add a couple of not yet used vars to pthread_private.h. o Remove return's from void functions. This is by no means complete, but instead of doing a big commit, i'll split it in small ones, minimizing diffs.
* Provide the equivalent to Solaris thr_main() function; from FreeBSDpvalchev2001-08-172-1/+50
|
* correctly return ssize_t.fgsch2001-08-172-4/+4
|
* ops, _thread_kern_set_timeout() to const.fgsch2001-08-151-2/+2
|
* * kevent(2) support; from FreeBSD.fgsch2001-08-153-3/+87
| | | | * change _thread_kern_set_timeout() parm to const.
* Use INFTIM.fgsch2001-08-151-2/+2
|
* For unsupported sched policies, return ENOTSUP, not EINVAL; from FreeBSD.fgsch2001-08-151-5/+11
|
* add missing _thread_enter_cancellation_point() before going further.fgsch2001-08-111-1/+4
|
* Avoid an infinite loop if the last iov_len is 0; from FreeBSD.fgsch2001-08-111-1/+13
|
* pthread_* do not set errno but returns a errno value.fgsch2001-08-103-13/+8
|
* Only return EINVAL if attr is invalid. If policy is invalid returnfgsch2001-08-091-5/+10
| | | | EOPNOTSUPP; from FreeBSD.
* Do not return EINVAL if param is NULL or the desired scheduling policyfgsch2001-08-091-3/+17
| | | | is unsupported but EOPNOTSUPP; from FreeBSD.
* Implement pthread_mutexattr_gettype() as defined in Single Unix Spec, v2;fgsch2001-08-091-1/+16
| | | | from FreeBSD.
* don't return on void.fgsch2001-08-041-4/+1
|
* switch stacks even when restoring a preempted thread. (credit to pefo@)d2001-01-161-12/+8
|
* use __x__ formats for __attribute__ arguments; guenther@gac.eduderaadt2000-12-061-3/+3
|
* switch to _machdep_switch() instead of setjmp/longjmp. For some reason this fixes sparc threads.d2000-10-043-48/+51
|
* if fstat fails fails, as it will on some sockets, close anyway.d2000-10-041-4/+10
|
* MACHINE_STACK_GROWS_UPd2000-03-221-18/+26
|
* alphad2000-02-261-3/+7
|
* better column titles. show prioq and scheduler timing informationd2000-02-261-5/+34
|
* uninitialised fieldsd2000-02-261-1/+3
|