summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2012-03-26Bump standards years, as we conform to the new versions tooPhilip Guenthe
ok jmc@
2012-03-26strsignal() was standardized in POSIX-2008Philip Guenthe
ok millert@
2012-03-24The arguments scandir() and alphasort() have changed; show that andPhilip Guenthe
give some history. ok matthew@ millert@ jmc@ naddy@
2012-03-23we don't mention LIBRARY: cMarc Espie
"of course" deraadt@
2012-03-22clean the sigact in a portable way; ok matthewTheo de Raadt
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-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-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-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-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-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-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-13Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. VariousPhilip Guenthe
syntax and grammar fixes from jmc@
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-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-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-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2012-02-18Extend after recent msdos support.Antoine Jacoutot
input/ok krw@ thib@ jmc@
2012-02-06Revert previous diff as it resulted in the wrong return code whenPhilip Guenthe
the last node is deleted. Instead, resolve the Coverity warning by returning (node *)1 when you delete the root node. based an idea from millert@. ok otto@
2012-02-04If the internal consistency check fails, set errno so that it doesn'tPhilip Guenthe
just look like end-of-directory. ok krw@ otto@ miod@
2012-01-22Credit Keith Sklower and 2BSD for the first implementation of read-writeIngo Schwarze
access; information found in the 2bsd directory of the CSRG archive CDs. feedback and ok jmc@
2012-01-20the glob stat limit is way too low. bump to 2048.Ted Unangst
while here, failed stats should count against the limit too. ok deraadt sthen stsp
2012-01-19symetryMarc Espie
ok jmc@, millert@
2012-01-18Add missing header needed by iswspace()Charles Longeau
ok stsp@
2012-01-18Add support for C99 %ls, %lc, and %l[ format directives to scanf(3).Stefan Sperling
Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc.
2012-01-17Remove assembly version of strlen from i386 and amd64, where it'sMike Belopuhov
up to 3 times slower than the C code most of the time. This was brought up by DragonflyBSD guys initially. ok deraadt, guenther. miod will not miss it.
2012-01-17fix SEE ALSO;Jason McIntyre
2012-01-17Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.Philip Guenthe
Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
particularly the "consume the signal you just sent" hang, and putting the wait queues in userspace. Do cancellation handling in pthread_cond_*wait(), pthread_join(), and sem_wait(). Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add 'abort" argument to thrsleep to close cancellation race; make thr{sleep,wakeup} return errno values via *retval to avoid touching userspace errno.
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2012-01-16POSIX indicates that some fields should be computed even if notTodd C. Miller
explicitly set. We can compute tm_yday, tm_wday, tm_mon and tm_mday based on the values that were specified if possible. Some logic borrowed from localtime.c. OK espie@ deraadt@
2012-01-16Document the \-C output format generated by VIS_ALLPhilip Guenthe
ok deraadt@
2012-01-15Document early history of a few functions specifically mentioned in 2BSDIngo Schwarze
manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@
2012-01-14grammar;Jason McIntyre
2012-01-14this is sparta^WPOSIX 2008Marc Espie
okay millert@
2012-01-03draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted byJason McIntyre
Poul-Henning Kamp, freebsd pr docs/163771; ok sthen
2012-01-01Updates regarding fts_close(3):Ingo Schwarze
1) The close(2) return value and errno are ignored. 2) The errno is set by fchdir(2), not by chdir(2), which has much less potential for errors. 3) Use .Rv -std. While here, remove STANDARDS. Keith Bostic added that hope in 1990 and tweaked the wording in 1993, but it didn't come true since then. ok kettenis@ jmc@
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-12-09Add new KERN_PROC_CWD sysctl to get the current working directory of a process.Nicholas Marriott
ok guenther deraadt
2011-12-08strdup and strndup both use malloc. Make this fact explicit.lum
ok jmc@
2011-12-06New fnmatch(3) implementation which is not recursive.Stefan Sperling
Written and provided under BSD licence by William A. Rowe Jr. Originally released in Apache APR-1.4.5. Merged class matching code from r1.14 and PATH_MAX check from r1.15. ok miod millert
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@