summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Update cancellation point list to reflect what's done with rthreadsguenther2012-03-221-2/+6
|
* Add dirfd() as a function to libc per POSIX requirement; dirfd() macromatthew2012-03-222-2/+14
| | | | | | to be pruned later when DIR is made an opaque type. ok guenther@; prodding by brad@ for VLC and other ports
* closefrom() should be a cancellation pointguenther2012-03-221-2/+16
|
* tfork_thread has been moved to libcguenther2012-03-2213-921/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-2215-4/+925
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* new sentence, new line;jmc2012-03-221-3/+4
|
* Implement getdelim(3) and getline(3).fgsch2012-03-214-3/+332
| | | | | | | | | Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree. ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself.
* Implement execvpe(3) and posix_spawn(3) and family. Based onmatthew2012-03-2114-17/+1839
| | | | | | | | FreeBSD's implementation via Frank Denis, with various cleanups and tweaks by me. ok deraadt@, guenther@; discussions and tweaks from many others jmc@ promises to help me further with the man pages in tree
* Update list of cancellation points to reflect what was in 5.1's uthreadsguenther2012-03-211-6/+28
| | | | Pointed out by nicolas.george at normalesup.org. ok jmc@
* Fix a bug where random() always returns 0 when srandom() is seededmillert2012-03-211-2/+3
| | | | | with 0. Use 1 and not 0 as the first element of the state array, similar to what glibc does. OK nicm@
* the disease is spreadingdlg2012-03-201-3/+3
|
* Clean up unnecessary prototypes. Pointed out by brad@guenther2012-03-201-7/+1
|
* Permit recursive locking in _rthread_dl_lock(), as an so's destructorguenther2012-03-201-2/+42
| | | | | | may need to call dlclose(). problem observed by Antti Harri (iku at openbsd.fi), ok kurt@
* pull in more .h (spotted since struct vnode was not in scope)deraadt2012-03-161-1/+12
|
* Force sched_yield() to be resolved before calling dlctl(DL_SET*LCK) withguenther2012-03-141-1/+2
| | | | | | a function that can call sched_yield(), to avoid recursion ok kurt@ kettenis@
* 0 is a valid uid for files sysctl, don't skip it. reminded by guenthertedu2012-03-131-2/+2
|
* Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. Variousguenther2012-03-133-2/+346
| | | | syntax and grammar fixes from jmc@
* Don't trust the environment if issetugid()guenther2012-03-131-1/+3
|
* - fix a mistake in the list headerjmc2012-03-101-3/+3
| | | | - zap trailing whitespace
* Try to document the new settings of net.inet.tcp.rfc3390.claudio2012-03-101-3/+7
|
* Major bump, since struct vm_map and vm_map_entry changed size and layout.ariane2012-03-091-1/+1
|
* Userspace counterpart of new vmmap.ariane2012-03-091-13/+14
| | | | Allows memory walks to function.
* tweak previous;jmc2012-03-061-3/+3
|
* Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)ajacoutot2012-03-062-3/+8
| | | | | | | | | | | _SC_MONOTONIC_CLOCK variable. from Brad No libc minor crank needed, as no API has been changed, per se (deraadt). ports bulk testing by landry@ small man rewording from thib@ ok millert@ otto@ deraadt@
* New threads now inherit their TCB address from their parent threadguenther2012-03-041-4/+3
|
* Drop the rpcauth(3) MLINK, there is no function of that name.schwarze2012-03-043-14/+14
| | | | Joint work with and OK haesbaert@ jmc@
* add sem_timedwait to NAME;jmc2012-03-041-2/+3
|
* Document sem_timedwait()guenther2012-03-032-7/+33
|
* Sync the assembly statements with <machine/lock.h> for consistency.miod2012-03-031-5/+9
|
* Bump minor for recent additionsguenther2012-03-031-1/+1
|
* sem_timedwait() should return ETIMEDOUT instead of EWOULDBLOCK on timeoutguenther2012-03-031-2/+2
|
* Add sem_timewait() and fix sem_wait()'s handling of signals, soguenther2012-03-034-22/+58
| | | | | | | 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.
* fix check when setting the contention scope. harmless atm but still wrong.fgsch2012-03-021-2/+2
| | | | guenther@ ok.
* for readability, put the label on it's own line.fgsch2012-03-021-2/+3
|
* _SPINLOCK_UNLOCKED isn't zero everywhere (*cough*hppa*cough*), soguenther2012-03-021-1/+2
| | | | | | | sem_init() can't assume that calloc will leave the embedded spinlock in the unlocked state ok miod@ otto@
* Update to tzcode2012a from munnari.oz.aumillert2012-03-014-20/+36
|
* - Test for the retrieved page address not being NULL. This turns free((void*)1)otto2012-02-291-2/+7
| | | | | | into an bogus pointer error instead of a segfault. - Document that we use the assumption that a non-MAP_FIXED mmap() with hint 0 never returns NULL.
* Our default mutex type is PTHREAD_MUTEX_ERRORCHECK, for which tryingguenther2012-02-281-1/+20
| | | | | | | | | | to unlock an uninitialized mutex is required to return EPERM, so add the necessary checks. For recursive mutexes, return an error from pthread_mutex_lock() if the count would overflow. problem observed in glib testing by aja@
* fix __errno symbol namemiod2012-02-271-2/+2
|
* Fix buglets.miod2012-02-261-3/+3
|
* Fix several manpage titles, from Lawrence Teo.haesbaert2012-02-263-9/+9
| | | | ok dcoppa@ jmc@ schwarze@.
* __cerror gets invoked with errno in v0, not a0.miod2012-02-261-2/+2
|
* Fix label for threaded binaries to link.miod2012-02-261-2/+2
|
* Apply a bit more consistency in the ordering of functions in eachguenther2012-02-251-16/+16
| | | | group of functions. No objection from jmc@
* Add pthread_condattr_{get,set}clock(), pthread_mutex_timedlock(),guenther2012-02-241-3/+24
| | | | and pthread_rwlock_{timed,try}{rd,wr}lock(). Requested by jmc@
* jmc@ points out that the underlying manpage should be named after oneguenther2012-02-242-8/+7
| | | | of the functions, not a generic name that doesn't itself exist
* now that pthread_mutex_trylock.3 has been folded into pthread_mutex_lock.3,jmc2012-02-244-13/+9
| | | | don;t list both pages in SEE ALSO;
* Correct the spelling of "transferred" and "transferring"guenther2012-02-241-2/+2
| | | | from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
* sched_yield() is the standard name while pthread_yield() is theguenther2012-02-241-2/+2
| | | | non-standard alias, so prefer the former
* Document pthread_condattr_{init,destroy,setclock,getclock}guenther2012-02-242-1/+125
|