summaryrefslogtreecommitdiffstats
path: root/lib/libkse
Commit message (Collapse)AuthorAgeFilesLines
* Changed pthread_detach to conform to POSIX, i.e. the single argumentalex1997-12-251-10/+3
| | | | | | | | | provided is of type pthread_t instead of pthread_t *. PR: 4320 Return EINVAL instead of ESRCH if attempting to detach an already detached thread.
* Modify the return values to comply with POSIX. Previously thesealex1997-11-259-77/+38
| | | | | | functions would return -1 and set errno to indicate the specific error. POSIX requires that the functions return the error code as the return value of the function instead.
* Added missing source file uthread_sigwait.c.alex1997-11-241-1/+2
| | | | Submitted by: Daniel M. Eischen <deischen@iworks.InterWorks.org>
* Correct the return value from pthread_cond_timedwait when a timeoutalex1997-11-231-1/+1
| | | | | | occurs (was EAGAIN, is now ETIMEDOUT). Submitted by: Daniel M. Eischen <deischen@iworks.InterWorks.org>
* Bring back nanosleep from the cold.jb1997-06-041-1/+1
| | | | | | | | | | The addition of the nanosleep syscall was correctly added to libc/sys/Makefile so that it is renamed as _thread_sys_nanosleep(). This syscall is one of those that libc_r has to re-implement because the only behaviour is to block the process. So libc_r just ignores the fact that a nanosleep syscall exists and goes its own way - as it has done all along .... and now it does again. And now a simple program can sleep again. Phew.
* Fixed overallocation of _thread_fd_table.alex1997-05-131-1/+1
| | | | | PR: 3494 Submitted by: Steve Bauer <sbauer@rock.sdsmt.edu>
* Add const in the thread version of nanosleep()'s argspeter1997-05-121-1/+2
|
* remove prototype for nanosleep(), it's visible in unistd.h now.peter1997-05-121-1/+0
|
* Bye bye CPLUSPLUSLIB hack! It's not needed any more.jdp1997-05-061-3/+1
| | | | | Don't merge this into -2.2 unless you understand the dependencies on c++rt0, bsd.lib.mk, and gcc -shared. I.e., let me do it.
* Use libc makefiles from now on instead of duplicating them in libc_r.jb1997-05-033-150/+9
| | | | Added Id strings too. It's useful to know who last made a change.
* Set wakeup time in pthread_cond_wait() to `forever' (-1) to preventjb1997-04-111-24/+41
| | | | | | | calling thread from being rescheduled based on an unspecified wakeup time. Bug/fix pointed out by Alexandre Fenyo <fenyo@email.enst.fr>.
* Fix indentations. Sigh.jb1997-04-011-15/+17
|
* Add parentheses to make blocking mode work.jb1997-04-014-4/+12
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Submitted by: John Birrelljulian1997-02-0540-172/+994
| | | | uthreads update from the author.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sync with libc.alex1996-12-291-1/+1
| | | | Submitted by: John Birrell <jb@cimlogic.com.au>
* Added uthread_attr_destroy.c to SRCS.alex1996-12-291-1/+2
| | | | Submitted by: John Birrell <jb@cimlogic.com.au>
* Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np().hsu1996-11-112-0/+122
|
* Add uthread_attr_init.c, uthread_attr_setstacksize.c, uthread_mattr_init.c,hsu1996-11-111-1/+7
| | | | uthread_mattr_kind_np.c, uthread_multi_np.c, and uthread_single_np.c.
* Moved enum pthread_mutextype to pthread.h.hsu1996-11-111-6/+8
| | | | Add pthread_mutexattr_default definition.
* Make pthread_getspecific() compliant with the final IEEE pthreadshsu1996-11-111-9/+9
| | | | specification: return parameter passing changed.
* Remove now un-necessary FreeBSD specific code since our timespecnate1996-09-203-176/+0
| | | | | | structure now has the correct member names. Pointed out by: Peter Wemm
* Don't create/install libc_r_pic.apeter1996-08-301-1/+0
|
* Submitted by: john birell (jb@cimlogic.com.au)julian1996-08-221-20/+20
| | | | | fixups for makefiles and for Thread-safe sycalls
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-2027-494/+1568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* ``mv'' -> ``mv -f''wosch1996-05-071-6/+7
| | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root
* Sync libc_r with libc changes..peter1996-05-052-5/+5
|
* Added a new module "uthread_autoinit.cc". This is a small C++ module.jdp1996-02-172-1/+16
| | | | | | | | | | | | | | It uses a static constructor to call _thread_init() at program start-up time. That eliminates the need for any initialization hooks in crt0.o. Added a symbol reference in "uthread_init.c", to ensure that the new module will always be pulled in when the archive version of the library is used. In "Makefile.inc", defined CPLUSPLUSLIB, so that the constructor will be properly invoked in the shared library. Suggested by: Christopher Provenzano, Peter Wemm, and others.
* Reviewed by: julianjulian1996-01-2238-0/+6198
Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete
OpenPOWER on IntegriCloud