summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
Commit message (Collapse)AuthorAgeFilesLines
* Add sched_yield() witch is the draft 10 equivalent of pthread_yield()jb1998-03-082-22/+22
| | | | | from draft 4. Move some of the schedule definitions to sched.h which is a POSIX header.
* Fixes from Jeremy Allison and Terry Lambert for pthreads:julian1998-02-138-25/+154
| | | | | | | | | | | | | | | | | | | | | specifically: uthread_accept.c: Fix for inherited socket not getting correct entry in pthread flags. uthread_create.c: Fix to allow pthread_t pointer return to be null if caller doesn't care about return. uthread_fd.c: Fix for return codes to be placed into correct errno. uthread_init.c: Changes to make gcc-2.8 thread aware for exception stack frames (WARNING: This is #ifdef'ed out by default and is different from the Cygnus egcs fix). uthread_ioctl.c: Fix for blocking/non-blocking ioctl. uthread_kern.c: Signal handling fixes (only one case left to fix, that of an externally sent SIGSEGV and friends - a fairly unusual case). uthread_write.c: Fix for lock of fd - ask for write lock, not read/write. uthread_writev.c: Fix for lock of fd - ask for write lock, not read/write. Pthreads now works well enough to run the LDAP and ACAPD(with the gcc 2.8 fix) sample implementations.
* slight cleanup in handling sockets and file descriptors.julian1998-02-051-3/+13
| | | | Same fix already applied to other types of fds. This one was apparently missed.
* 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.
* Nuke makefiles that duplicate those in libc now that libc is libc_rjb1997-05-0326-320/+0
| | | | aware. This simplifies things for libc_r.
* 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 the return value. Oops.jb1997-04-011-1/+3
|
* Fix indentations. Sigh.jb1997-04-011-15/+17
|
* Make error checking less zealous to handle devices like /dev/nulljb1997-04-011-2/+10
| | | | | | | | | | | which don't provide a non-blocking interface. This is a short term "fix" which changes a half-lose to a half-win. The thread that accesses a device that does not provide a non-blocking interface will block for its time slice. A medium term solution would be to use rfork. A long-term solution would be some sort of kernel thread/SMP implementation.
* Add parentheses to make blocking mode work.jb1997-04-014-4/+12
|
* Revert $FreeBSD$ to $Id$peter1997-02-2212-12/+12
|
* Submitted by: John Birrelljulian1997-02-0545-208/+1045
| | | | uthreads update from the author.
* Sort cross references.wosch1997-01-206-12/+12
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1412-12/+12
| | | | | | | | 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.
* Unspam this file: replace spaces with tabs so make doesn't barf. (I smellwpaul1996-12-291-5/+5
| | | | | | a cut & paste-o.) Noticed by: Ron Bolin <rlb@mindspring.com>
* Sync with libc.alex1996-12-292-3/+12
| | | | 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.
* add missing comma(s) in .Xr macroswosch1996-09-231-1/+3
|
* fix .Xr macrowosch1996-09-211-1/+1
|
* 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
* - libc self contained again.peter1996-08-301-6/+7
| | | | - sync up source files with main libc
* pick up the resolver sources from contribadam1996-08-301-0/+1
|
* cmp -s || install -c ==> install -Cpeter1996-08-301-5/+5
|
* 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-2048-690/+2659
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add collate_range_cmpache1996-08-131-1/+2
|
* ``mv'' -> ``mv -f''wosch1996-05-072-16/+18
| | | | | ``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
|
* keep the libc_r makefiles in step with those from libcjulian1996-03-202-6/+8
| | | | | | There needs to be a better way of doing this.. preferably we could add another pass to the normal libc makefiles to do _r versions as well as _p versions
* Added a new module "uthread_autoinit.cc". This is a small C++ module.jdp1996-02-173-1/+104
| | | | | | | | | | | | | | 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.
* Removed "iso_addr.c" from the Makefile. Support for it has been removedjdp1996-02-171-1/+1
| | | | from the system, and a required include file no longer exists.
* error handling for threaded appsjulian1996-01-221-0/+50
|
* Reviewed by: julianjulian1996-01-2299-0/+8951
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