summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-03-22bump majors on libc and rthreads for the additions to libc and transferPhilip Guenthe
of __tfork_thread from rthreads to libc
2012-03-22<sched.h> is never pulled in from the kernel and #ifdef KERNEL would bePhilip Guenthe
the wrong symbol anyway, so zap some lines ok matthew@
2012-03-22Make DIR a private type within libc, give it the same underlyingMatthew Dempsky
typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
2012-03-22Hide behind #if 0 the sched_*() functions that we don't have yetPhilip Guenthe
Requested and tested against ports by aja@, ok matthew@
2012-03-22Update alphasort() and scandir()'s argument types to match POSIX:Philip Guenthe
use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@
2012-03-22Update cancellation point list to reflect what's done with rthreadsPhilip Guenthe
2012-03-22Add dirfd() as a function to libc per POSIX requirement; dirfd() macroMatthew Dempsky
to be pruned later when DIR is made an opaque type. ok guenther@; prodding by brad@ for VLC and other ports
2012-03-22closefrom() should be a cancellation pointPhilip Guenthe
2012-03-22tfork_thread has been moved to libcPhilip Guenthe
2012-03-22Move __tfork_thread() from rthreads (libpthread) to libc so thatPhilip Guenthe
it can be used for not-strictly-threading purposes ok matthew@ kurt@
2012-03-22new sentence, new line;Jason McIntyre
2012-03-21Implement getdelim(3) and getline(3).Federico G. Schwindt
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.
2012-03-21Implement execvpe(3) and posix_spawn(3) and family. Based onMatthew Dempsky
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
2012-03-21Update list of cancellation points to reflect what was in 5.1's uthreadsPhilip Guenthe
Pointed out by nicolas.george at normalesup.org. ok jmc@
2012-03-21Fix a bug where random() always returns 0 when srandom() is seededTodd C. Miller
with 0. Use 1 and not 0 as the first element of the state array, similar to what glibc does. OK nicm@
2012-03-20the disease is spreadingDavid Gwynne
2012-03-20Clean up unnecessary prototypes. Pointed out by brad@Philip Guenthe
2012-03-20Permit recursive locking in _rthread_dl_lock(), as an so's destructorPhilip Guenthe
may need to call dlclose(). problem observed by Antti Harri (iku at openbsd.fi), ok kurt@
2012-03-16pull in more .h (spotted since struct vnode was not in scope)Theo de Raadt
2012-03-14Force sched_yield() to be resolved before calling dlctl(DL_SET*LCK) withPhilip Guenthe
a function that can call sched_yield(), to avoid recursion ok kurt@ kettenis@
2012-03-130 is a valid uid for files sysctl, don't skip it. reminded by guentherTed Unangst
2012-03-13Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. VariousPhilip Guenthe
syntax and grammar fixes from jmc@
2012-03-13Don't trust the environment if issetugid()Philip Guenthe
2012-03-10- fix a mistake in the list headerJason McIntyre
- zap trailing whitespace
2012-03-10Try to document the new settings of net.inet.tcp.rfc3390.Claudio Jeker
2012-03-09Major bump, since struct vm_map and vm_map_entry changed size and layout.Ariane van der Steldt
2012-03-09Userspace counterpart of new vmmap.Ariane van der Steldt
Allows memory walks to function.
2012-03-06tweak previous;Jason McIntyre
2012-03-06Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)Antoine Jacoutot
_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@
2012-03-04New threads now inherit their TCB address from their parent threadPhilip Guenthe
2012-03-04Drop the rpcauth(3) MLINK, there is no function of that name.Ingo Schwarze
Joint work with and OK haesbaert@ jmc@
2012-03-04add sem_timedwait to NAME;Jason McIntyre
2012-03-03Document sem_timedwait()Philip Guenthe
2012-03-03Sync the assembly statements with <machine/lock.h> for consistency.Miod Vallat
2012-03-03Bump minor for recent additionsPhilip Guenthe
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
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-03-02fix check when setting the contention scope. harmless atm but still wrong.Federico G. Schwindt
guenther@ ok.
2012-03-02for readability, put the label on it's own line.Federico G. Schwindt
2012-03-02_SPINLOCK_UNLOCKED isn't zero everywhere (*cough*hppa*cough*), soPhilip Guenthe
sem_init() can't assume that calloc will leave the embedded spinlock in the unlocked state ok miod@ otto@
2012-03-01Update to tzcode2012a from munnari.oz.auTodd C. Miller
2012-02-29- Test for the retrieved page address not being NULL. This turns free((void*)1)Otto Moerbeek
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.
2012-02-28Our default mutex type is PTHREAD_MUTEX_ERRORCHECK, for which tryingPhilip Guenthe
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@
2012-02-27fix __errno symbol nameMiod Vallat
2012-02-26Fix buglets.Miod Vallat
2012-02-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2012-02-26__cerror gets invoked with errno in v0, not a0.Miod Vallat
2012-02-26Fix label for threaded binaries to link.Miod Vallat
2012-02-25Apply a bit more consistency in the ordering of functions in eachPhilip Guenthe
group of functions. No objection from jmc@
2012-02-24Add pthread_condattr_{get,set}clock(), pthread_mutex_timedlock(),Philip Guenthe
and pthread_rwlock_{timed,try}{rd,wr}lock(). Requested by jmc@