summaryrefslogtreecommitdiffstats
path: root/lib/libpthread (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 88k uthread stuff. some regress succeeds, a few others still fail. Thisderaadt2004-02-274-2/+188
| | | | is enough to start debugging further.. ok miod
* change amd64's MACHINE_ARCH from x86_64 to amd64. There are many manyderaadt2004-02-274-248/+0
| | | | | | reasons for this, quite a few of them technical, and not all of them in response to Intel's broken ia32e crud. The gcc toolchain stays at x86_64 for now.
* Apply my copyrights to these files which I wrote. none of the olddrahn2004-02-252-4/+50
| | | | copyright code remained.
* copyrightsderaadt2004-02-258-4/+116
|
* initial working pthreads support from sparc64, done with drahn. there arederaadt2004-02-258-20/+298
| | | | | some `debugging features' and other optimizations (such as not saving all registers) that we can still do perhaps
* Sync closer to FreeBSD's pthread.h. Fixes up some prototypesbrad2004-02-241-31/+29
| | | | | | and formatting. ok marc@
* add pthread_attr_[get|set]stackbrad2004-02-225-4/+129
| | | | | | From: FreeBSD's libc_r ok marc@
* Some cleanup of pthread.h. Don't conditionalizebrad2004-02-221-40/+1
| | | | | | | | | inclusion of prototypes. Remove some prototypes for functions we do not implement. From: FreeBSD's libc_r ok marc@
* if cpu has fxsr, use fxsave instead; ok marcderaadt2004-02-212-11/+45
|
* Implement the arm pthreads pieces, only two regress fails, preemption_floatdrahn2004-02-212-158/+95
| | | | and sigmask.
* 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-165-11/+11
| | | | | | From: FreeBSD's libc_r ok marc@
* Add copyright to code where I forgot, thx wouter.drahn2004-02-091-2/+27
|
* Add arm support files for libpthread.drahn2004-02-094-0/+250
|
* remove silly stub file for alpha and only try to compile _atomic_lock.cbrad2004-02-062-8/+5
| | | | | | if it actually exists. ok marc@
* remove sparcv9 code.brad2004-02-021-8/+2
| | | | ok marc@
* sparc -> sparc64brad2004-02-023-6/+10
|
* 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@
* the rest of the libs stuff; from art@ againmickey2004-01-288-0/+106
|
* remove redundant prototypes for pthread_[gs]etconcurrencybrad2004-01-271-3/+1
| | | | in-between #ifdef notyet
* Change read_stackseg_np to work with any thread, not just the currentmarc2004-01-263-10/+9
| | | | | thread. Requested by truk at optonline dot net and OK-ed by tedu @.
* use new .St macro;jmc2004-01-252-4/+4
|
* Fix -Wsign-compare warnings pointed out by kevlo@, ok marc@millert2004-01-191-6/+6
|
* don't include bsd.own.mk, it's included at the top of bsd.lib.mkmarc2004-01-181-2/+1
|
* Include correct includes to unbreak compilation on macppc. ok miod@otto2004-01-161-6/+4
|
* fix .Xr and SEE ALSO;jmc2004-01-161-5/+5
| | | | use parentheses;
* add some commas;jmc2004-01-161-3/+3
|
* man pages for thread_yield and pthread_stackseg_npmarc2004-01-154-3/+88
| | | | jmc asked for them, now he can make them look pretty
* threaded version of closefrommarc2004-01-156-4/+145
| | | | | pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
* group and list thread functions;jmc2004-01-151-2/+200
| | | | | | | also add missing pages to SEE ALSO; prodded by tedu@, based on freebsd's page, and helped by marc@; ok marc@ tedu@
* new syscall closefrom(2). ok deraadt millerttedu2004-01-121-1/+1
|
* 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@
* add a section on thread safety, which is a start at documenting whichjmc2004-01-021-2/+93
| | | | | | | | | | | | functions are not thread safe; started by a request from Marc Balmer to document that malloc(3) *was* thread safe, and expanded by marc@ to list functions that are not; also add some spacing to make the page more readable, and adjust the -width of a list; 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>
* bump minorbrad2003-12-231-1/+1
|
* Add stub implementations of pthread_[gs]etconcurrencybrad2003-12-235-3/+185
| | | | | | From: FreeBSD' libc_r ok marc@
* change the variable name used for status checking,brad2003-12-232-4/+4
| | | | | | 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
* Real atomic locks for m88k.miod2003-10-261-3/+41
|
* Add wrapper for kqueue() to keep track of the allocated fd and allow it tobrad2003-10-224-5/+62
| | | | | | | 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@
* indicacte -> indicate; from Jared Yanovichjmc2003-10-211-2/+2
|