summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/uthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.brad2005-10-312-5/+5
| | | | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
* Add pthread_atfork(3)brad2005-10-305-5/+96
| | | | | | | From FreeBSD 'looks ok' fgsch@ miod@ man page reviewed by jmc@
* Don't use TAILQ_NEXT() on an element that has been removed. Similar tokrw2005-10-301-5/+10
| | | | | | | | otto@'s diff for uvm_aobj.c. Identical to a diff canacar@ developed independantly. ok brad@ 'looks correct' fgsch@
* Don't use TAILQ_NEXT() on an element that has been removed. Similar tokrw2005-10-291-3/+4
| | | | | | otto@'s diff for uvm_aobj.c. ok deraadt@ pedro@
* Use queue macros instead of directly accessing fields. ok marc@ miod@otto2005-10-141-5/+5
| | | | patrick@
* Grab the current time before calculating thread wake-up time.marc2005-01-281-19/+9
| | | | | Solves a problem where select/poll calls would return early without indicating any error. Tested by otto@ and kurt@ -- thanks.
* Add debug support.kettenis2005-01-231-1/+6
| | | | ok marc@
* Avoid using void pointers in additive expressionsbrad2004-12-121-2/+4
| | | | | | From FreeBSD ok marc@
* * make sure we leave the thread's cancellation point before we returnpat2004-11-303-4/+10
| | | | | | * plug a memory leak and FD_UNLOCK properly in writev ok marc
* Allow thread in FD{R,W}_WAIT states to be suspended.marc2004-09-181-2/+12
| | | | | Patch from Kurt Miller <truk at optonline.net> Commit reminder from millert@. OK brad@
* major bump to libc and libpthread to break the dependency of amarc2004-06-074-50/+19
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* pthead_supsend_all_np and pthread_resume_all_np from freebsd viamarc2004-05-013-117/+192
| | | | | | Kurt Miller <truk at optonline.net>. Kurt says: They're needed for the java hotspot compiler in the 1.3+ jdk OK brad@
* refresh curthread after a thread switch so it points to the realmarc2004-04-131-1/+11
| | | | current thread. ok deraadt@
* ansibrad2004-04-101-5/+2
|
* stylebrad2004-04-101-2/+2
|
* When poll(2)'ing for readability or writability of a file descriptorbrad2004-04-091-3/+7
| | | | | | | | | on behalf of a thread, we should check the POLLERR, POLLHUP, and POLLNVAL flags as well to wake up the thread in these cases. From: FreeBSD's libc_r ok marc@
* Apply patch from guenther at mho.com (pr3730) that fixes a doublemarc2004-04-061-2/+4
| | | | free in the threads library
* add pthread_attr_[get|set]stackbrad2004-02-223-1/+124
| | | | | | From: FreeBSD's libc_r ok marc@
* fixes function parameters to match the man page as wellbrad2004-02-161-2/+5
| | | | | | | | as adding a more aggressive arguement check. From: FreeBSD's libc_r. ok marc@
* Add missing const for function parameters to match POSIX.brad2004-02-162-4/+4
| | | | | | From: FreeBSD's libc_r ok marc@
* Add a simple work-around for deadlocking on recursivebrad2004-02-012-47/+85
| | | | | | | | readlocks on a rwlock while there are writers waiting. From: FreeBSD's libc_r ok marc@
* Change read_stackseg_np to work with any thread, not just the currentmarc2004-01-261-3/+2
| | | | | thread. Requested by truk at optonline dot net and OK-ed by tedu @.
* Fix -Wsign-compare warnings pointed out by kevlo@, ok marc@millert2004-01-191-6/+6
|
* Include correct includes to unbreak compilation on macppc. ok miod@otto2004-01-161-6/+4
|
* threaded version of closefrommarc2004-01-155-3/+143
| | | | | pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
* Fixes from FreeBSD's libc_rbrad2004-01-031-14/+26
| | | | | | | | | | | | | | | | rev 1.21 Make the libc_r version of select() set the readable or writable file descriptor bit if poll() returns POLLERR, POLLHUP, or POLLNVAL. Othewise, it's possible for select() to return successfully but with no bits set. rev 1.19 Return correct number of total bits set in all fd_set's. Change case of POLLNVAL as an error. Remove POLLHUP and POLLERR from one case, their place is most likely amongst read events. ok marc@
* more cancellation points.brad2004-01-014-5/+25
| | | | ok marc@
* there is no pause() wrapper (thread_sys_pause) so remove the prototypebrad2003-12-311-2/+1
|
* undefer sigs in all paths through the join code.marc2003-12-311-12/+6
| | | | Based upon patch/report from Marc Olzheim <marcolz at stack.nl>
* Add stub implementations of pthread_[gs]etconcurrencybrad2003-12-232-1/+65
| | | | | | From: FreeBSD' libc_r ok marc@
* change the variable name used for status checking,brad2003-12-231-2/+2
| | | | | | LIBC_R_DEBUG -> LIBPTHREAD_DEBUG ok marc@
* Based upon a freebsd change:marc2003-12-231-10/+6
| | | | | | | | | | | | | | If an application closes one of its stdio descriptors (0..2), an excessive close() on one of these descriptors would cause a memory for this descriptor to be allocated in the internal descriptor table. When this descriptor gets used again, e.g. through the call to open() or socket(), the descriptor would be erroneously left in the blocking mode, and the whole application would get stuck on a blocking operation, e.g., in accept(2). but changed to not eat fds when a file that the thread kernel doesn't know about is closed.
* Make accept(), connect(), recvfrom(), recvmsg(), sendmsg(),brad2003-12-237-7/+57
| | | | | | | | and sendto() cancellation points, as required by POSIX.1-2001. From: FreeBSD' libc_r ok marc@
* Fix from FreeBSD' libc_rbrad2003-12-221-7/+22
| | | | | | | | rev 1.21 Fix bogus return values from libc_r's writev() routine in situations where a partial-write is followed by an error. ok marc@
* Fixes from FreeBSD' libc_rbrad2003-12-221-8/+25
| | | | | | | | | | | | | | | rev 1.21 Fix bogus return values from libc_r's write() routine in situations where partial-write is followed by an error. rev 1.22 If __sys_write() returns 0, allow that to exit the loop in libc_r's wrapped version of write(). rev 1.23 Return to the caller if write() returns 0. ok marc@
* Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has.millert2003-12-101-3/+3
|
* missing proto for kqueue(); marc@ okmickey2003-11-101-1/+2
|
* replace magic number for min number of poll_data entriesmarc2003-11-031-3/+8
| | | | to allocate with a define
* Add wrapper for kqueue() to keep track of the allocated fd and allow it tobrad2003-10-223-2/+59
| | | | | | | be closed. This fixes a file descriptor leak when closing a kqueue() fd. from FreeBSD ok marc@
* When about to do an execve(), don't bother resetting the O_NONBLOCK flagbrad2003-10-221-1/+5
| | | | | | | on any file descriptors that have the close-on-exec flag set. from FreeBSD ok marc@
* Fix optimized select handling buglet. Patch from tholo@marc2003-10-191-2/+2
|
* sync FreeBSD RCS idbrad2003-10-191-2/+2
|
* Optimize conversion of fd_set -> pollfd. OK and test by marc@millert2003-10-161-29/+37
|
* Off-by-ones, from aaron@miod2003-09-221-2/+2
|
* Remove some double semicolons (hmm, do two semis equal a maxi?).millert2003-08-061-5/+5
| | | | I've skipped the GNU stuff for now. From Patrick Latifi.
* Go back to using ITIMER_PROF for the non-profiled libpthread and usemillert2003-08-011-2/+2
| | | | | | | ITIMER_VIRTUAL for the profiled version. Fixes problems when programs linked with libpthread try to use ITIMER_VIRTUAL (and have no way of knowing that this will cause conflicts with the threads lib). marc@ OK
* remove variable never readmarc2003-07-083-8/+3
|
* Add support for blocking thread switches during dlopen and othermarc2003-05-133-4/+27
| | | | | | | | 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
* fix for pr# 3179 and 3238. Patch verified by author of 3179.marc2003-04-302-4/+10
|
* Remove unused file. OpenBSD uses uthread_info_openbsd.c, instead.marc2003-03-311-317/+0
| | | | This is easier than fixing the strcpy in the file.