summaryrefslogtreecommitdiff
path: root/lib/libpthread/include
AgeCommit message (Collapse)Author
2012-03-03Add sem_timewait() and fix sem_wait()'s handling of signals, soPhilip Guenthe
that it resumes waiting unless the thread was canceled. As part of this, change the internal _sem_wait() function to return zero on success and an errno value on failure instead of 1 on success and zero on failure.
2012-02-23Add pthread_condattr_{get,set}clock(), requested by aja@Philip Guenthe
Add pthread_mutex_timedlock(), requested by dcoppa@
2012-01-03The prototype for pthread_sigmask(2) is supposed to live in <signal.h>Mark Kettenis
instead of <pthread.h>. ok guenther@, millert@
2010-04-12Add support for pthread_rwlock_timed locks.Ted Unangst
from brad. ok kurt, who's too busy to commit
2008-12-18Add pthread_attr_[sg]etguardsize() to match rthread, including manpagesPhilip Guenthe
Bump lib minor ok otto@ kurt@ marc@; doc review by jmc@
2008-06-25Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112Todd C. Miller
now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@
2007-03-15give _POSIX_THREAD_* defines a value of 1 so applications thatKurt Miller
conditionally compile code using these defines will work. okay tedu@, marc@, milllert@
2006-05-30Bump minimum stack size; current setting causes hangs or illegalOtto Moerbeek
instructions once every few runs. Problem noted by Botond Botyanszki. ok marc@
2006-04-09Change a debug interface to take const char pointers so we don't aveKenneth R Westerback
to cast away constness whenever we want to pass in a string that is already const -- we copy the string if we want to use it, so having it be non-const in the first place does not make any sense. From tholo@ ok tedu@
2005-10-31- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.Brad Smith
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
2005-10-30and make sure the header change goes in too.Brad Smith
2004-05-01pthead_supsend_all_np and pthread_resume_all_np from freebsd viaMarco S Hyman
Kurt Miller <truk at optonline.net>. Kurt says: They're needed for the java hotspot compiler in the 1.3+ jdk OK brad@
2004-02-24Sync closer to FreeBSD's pthread.h. Fixes up some prototypesBrad Smith
and formatting. ok marc@
2004-02-22add pthread_attr_[get|set]stackBrad Smith
From: FreeBSD's libc_r ok marc@
2004-02-22Some cleanup of pthread.h. Don't conditionalizeBrad Smith
inclusion of prototypes. Remove some prototypes for functions we do not implement. From: FreeBSD's libc_r ok marc@
2004-02-16Add missing const for function parameters to match POSIX.Brad Smith
From: FreeBSD's libc_r ok marc@
2004-01-27remove redundant prototypes for pthread_[gs]etconcurrencyBrad Smith
in-between #ifdef notyet
2004-01-26Change read_stackseg_np to work with any thread, not just the currentMarco S Hyman
thread. Requested by truk at optonline dot net and OK-ed by tedu @.
2004-01-15threaded version of closefromMarco S Hyman
pthread_stackseg_np added. Minor bump for these changes occurred a day or so ago and will not be bumped again
2003-12-23Add stub implementations of pthread_[gs]etconcurrencyBrad Smith
From: FreeBSD' libc_r ok marc@
2003-02-27Don't need to specify both __dead and __attribute__((__noreturn__)) forChad Loder
pthread_exit prototype. Replace with just __dead. OK millert@, marc@
2003-01-31Create a siginfo_t for thread-to-thread kill.Marco S Hyman
Clean up (compiler warning elimination). Compile check options added but commented out as they have not been checked on all architectures, yet.
2003-01-20Use the sources that exist in sibdirs of libpthread, not libc_rMarco S Hyman
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
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-18tab vs. spacesFederico G. Schwindt
2002-01-18while im here, move the ifndef _SCHED_H_ after the copyright message.Federico G. Schwindt
2002-01-18From FreeBSD: header for POSIX 1003.1b semaphores.Federico G. Schwindt
2002-01-10Change 1st arg in pthread_attr_getdetachstate to const.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-09-04put changes back, this time ALL the files.Federico G. Schwindt
2001-08-17pthread_main_np prototypePeter Valchev
2000-12-06use __x__ formats for __attribute__ arguments; guenther@gac.eduTheo de Raadt
2000-06-27forward declaration of struct timespec to avoid warningArtur Grabowski
2000-01-06LIBCR_SRCDIRDavid Leonard
2000-01-06volatile the spinlockDavid Leonard
2000-01-06always define _POSIX_THREADS; volatile some types (mickey@)David Leonard
2000-01-04Fix incorrect `pshared' argument type for pthread_rwlockattr_setpshared.Alex Feldman
rse@engelschall.com via FreeBSD.
1999-11-25sync with FreeBSDDavid Leonard
1999-06-15Remove pthread_atfork()David Leonard
1999-05-26sync with FreeBSDDavid Leonard
1999-03-10identDavid Leonard
1999-03-10missing const (freebsd)David Leonard
1999-03-10Goodbye, MIT pthreads... you were a handy reference implementationDavid Leonard
1999-01-18move private spinlock protos outDavid Leonard
1999-01-18sync with previous changesDavid Leonard
1999-01-08move spinlock.h into the real worldDavid Leonard
1998-12-21very important bit of md spinlockDavid Leonard
1998-12-21cleanDavid Leonard
1998-12-10sync with FreeBSDDavid Leonard