summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sem.c
AgeCommit message (Expand)Author
2020-04-06Update my email address.Paul Irofti
2019-11-01Remove duplicated header.Martin Pieuchot
2019-01-29Rename 1-letter variables to be coherent with others futex(2) basedMartin Pieuchot
2018-06-08New semaphore implementation making sem_post async-safe.Paul Irofti
2018-04-27pthread_join() must not return EINTRPhilip Guenther
2018-04-24Validate timespec and return ECANCELED when interrupted with SA_RESTART.Paul Irofti
2017-09-05Move mutex, condvar, and thread-specific data routes, pthread_once, andPhilip Guenther
2016-09-04Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".Michal Mazurek
2016-09-03Remove _USING_TICKETS, it's defined as 0. No functional change.Michal Mazurek
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.Philip Guenther
2016-04-02Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalPhilip Guenther
2015-12-10use geteuid to allow root to communicate with others.Ted Unangst
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2014-06-27Fix mmap() flag usage: explicitly specify MAP_PRIVATE and drop uselessMatthew Dempsky
2013-12-11revert to return EPERM for sem_init pshared until it really worksTed Unangst
2013-12-08Reduce the random name length when sem_init is called with psharedFederico G. Schwindt
2013-11-26Remove unused var and include. Fix errno values as per spec.Federico G. Schwindt
2013-11-22don't use PAGE_SIZE, it is not portable. Ted can polish this afterTheo de Raadt
2013-11-21handle the fourth vararg value to sem_openTed Unangst
2013-11-20shared semaphore fixes. first, eliminate the sem inside a sem indirection.Ted Unangst
2013-11-20oops, forgot about unnamed shared semsTed Unangst
2013-11-20zhuk and i have slightly different styles. unify and consistifyTed Unangst
2013-11-18interprocess semaphores ala sem_open. mostly following in the patternTed Unangst
2013-06-01something's not quite right yet. ticket locks result in more CPU usageTed Unangst
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
2012-03-03sem_timedwait() should return ETIMEDOUT instead of EWOULDBLOCK on timeoutPhilip Guenthe
2012-03-03Add sem_timewait() and fix sem_wait()'s handling of signals, soPhilip Guenthe
2012-03-02_SPINLOCK_UNLOCKED isn't zero everywhere (*cough*hppa*cough*), soPhilip Guenthe
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
2012-01-04Fix $OpenBSD tagPhilip Guenthe
2012-01-04Add some sanity checks, set errno accordingly to POSIX and add the namedMartin Pieuchot
2012-01-04Split out the semaphore functions.Martin Pieuchot