summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
AgeCommit message (Collapse)Author
2002-05-07return EBUSY, not EWOULDBLOCK for error when calling thread would blockPeter Valchev
for pthread_rwlock_wrlock & sie says Single Unix Specification; ok fgs
2002-05-07Make sure calls to pthread_cancel() do not take effect if the targetPeter Valchev
thread is already exiting, from archie@FreeBSD, ok fgs
2002-03-07ANSI'fy.Federico G. Schwindt
2002-03-07From FreeBSD:Federico G. Schwindt
Properly clear the status of a join operation if the joining thread is canceled or the joinee is detached.
2002-02-21account for the process signal mask when dealing with signals; testedFederico G. Schwindt
a while ago by marc@ and brad@
2002-02-19correct return values.Federico G. Schwindt
2002-02-19From FreeBSD:Federico G. Schwindt
Prevent dup2(2) from closing internal libc_r pipe descriptors.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-24remove old style init used by mips. uses _thread_init_constructor nowPer Fogelstrom
2002-01-23From FreeBSD:Federico G. Schwindt
o Use _get_curthread() instead of _thread_run. o Correctly deal with cancellations. o Add libc internal versions of pthread_mutex_lock() and pthread_mutex_trylock(), unused by now.
2002-01-19Instead of ifdef around ENOTSUP, move it to pthread_private.h and makeFederico G. Schwindt
it EOPNOTSUPP.
2002-01-19From FreeBSD: correct priority handling.Federico G. Schwindt
2002-01-18From FreeBSD: sem_XXX implementation; manpages comming in a bit.Federico G. Schwindt
2002-01-17when alloc'ing the ready queue, make it big enough.Federico G. Schwindt
2002-01-10Change 1st arg in pthread_attr_getdetachstate to const.Federico G. Schwindt
2002-01-10From FreeBSD: fix conversion from msec to timespec.Federico G. Schwindt
2002-01-04comment out the pending signals check by now; it was not suppose to beFederico G. Schwindt
there yet.
2002-01-02fpathconf(2) returns long.Federico G. Schwindt
2001-12-31More changes from FreeBSD, including:Federico G. Schwindt
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.
2001-12-30call pthread_sigmask() instead of having the code twice.Federico G. Schwindt
2001-12-20From FreeBSD:Federico G. Schwindt
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.
2001-12-20sync with freebsd.Federico G. Schwindt
2001-12-19More sync.Federico G. Schwindt
2001-12-18Allow the scheduler to return to the signal handler and the signalMarco S Hyman
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
2001-12-11More sync with freebsd code; join related code this time.Federico G. Schwindt
2001-12-08sync with freebsd.Federico G. Schwindt
2001-12-08Partially sync with FreeBSD; mostly pthread_cancel(3) related changes.Federico G. Schwindt
make includes is needed in case you want to play.
2001-11-12a better fix for recursive mutex.Federico G. Schwindt
2001-11-12This fixes the recursive mutex problem with pthreads.Marco S Hyman
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.
2001-11-09Fix problem found by espie (and other porters) whereMarco S Hyman
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.
2001-11-05Don't change the state of a thread as a result of a signal that isMarco S Hyman
masked by that thread. This fixes the problem found with the signal regression test.
2001-11-02Fix signal dispatching. No-one has reported any probs (other thanMarco S Hyman
with regression tests that need to be fixed) and fgs@ thinks it's OK. I'll look at the pthreads regression tests, next
2001-09-04Use _waitq_remove() and _waitq_insert() always; from FreeBSD.Federico G. Schwindt
2001-09-04put changes back, this time ALL the files.Federico G. Schwindt
2001-08-30Back out fgsch@'s tree breaking commits.Todd T. Fries
Test next time, ok?
2001-08-30fix some const warnings.Federico G. Schwindt
more sync with freebsd.
2001-08-29More sync with FreeBSD.Federico G. Schwindt
2001-08-26More syncing with FreeBSD, preparing for a commit.Federico G. Schwindt
2001-08-21Start syncing with FreeBSD:Federico G. Schwindt
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.
2001-08-17Provide the equivalent to Solaris thr_main() function; from FreeBSDPeter Valchev
2001-08-17correctly return ssize_t.Federico G. Schwindt
2001-08-17correctly return ssize_t.Federico G. Schwindt
2001-08-15ops, _thread_kern_set_timeout() to const.Federico G. Schwindt
2001-08-15* kevent(2) support; from FreeBSD.Federico G. Schwindt
* change _thread_kern_set_timeout() parm to const.
2001-08-15Use INFTIM.Federico G. Schwindt
2001-08-15For unsupported sched policies, return ENOTSUP, not EINVAL; from FreeBSD.Federico G. Schwindt
2001-08-11add missing _thread_enter_cancellation_point() before going further.Federico G. Schwindt
2001-08-11Avoid an infinite loop if the last iov_len is 0; from FreeBSD.Federico G. Schwindt
2001-08-10pthread_* do not set errno but returns a errno value.Federico G. Schwindt
2001-08-09Only return EINVAL if attr is invalid. If policy is invalid returnFederico G. Schwindt
EOPNOTSUPP; from FreeBSD.