summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bump standards years, as we conform to the new versions tooguenther2012-03-261-4/+4
| | | | ok jmc@
* strsignal() was standardized in POSIX-2008guenther2012-03-261-2/+7
| | | | ok millert@
* The arguments scandir() and alphasort() have changed; show that andguenther2012-03-241-4/+26
| | | | | | give some history. ok matthew@ millert@ jmc@ naddy@
* we don't mention LIBRARY: cespie2012-03-2310-30/+10
| | | | "of course" deraadt@
* clean the sigact in a portable way; ok matthewderaadt2012-03-221-2/+5
|
* bump majors on libc and rthreads for the additions to libc and transferguenther2012-03-221-1/+1
| | | | of __tfork_thread from rthreads to libc
* Make DIR a private type within libc, give it the same underlyingmatthew2012-03-225-5/+23
| | | | | | typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
* Update alphasort() and scandir()'s argument types to match POSIX:guenther2012-03-221-5/+5
| | | | | | | use "const struct dirent **" instead of "const void *". Also, add __restrict to readdir_r(). ok matthew@
* 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
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-2214-2/+923
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* 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
* 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
|
* Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. Variousguenther2012-03-133-2/+346
| | | | syntax and grammar fixes from jmc@
* - 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
|
* 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@
* 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.
* Fix several manpage titles, from Lawrence Teo.haesbaert2012-02-262-6/+6
| | | | ok dcoppa@ jmc@ schwarze@.
* Extend after recent msdos support.ajacoutot2012-02-181-4/+5
| | | | input/ok krw@ thib@ jmc@
* Revert previous diff as it resulted in the wrong return code whenguenther2012-02-061-5/+3
| | | | | | | 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@
* If the internal consistency check fails, set errno so that it doesn'tguenther2012-02-041-5/+8
| | | | | | just look like end-of-directory. ok krw@ otto@ miod@
* Credit Keith Sklower and 2BSD for the first implementation of read-writeschwarze2012-01-221-2/+7
| | | | | access; information found in the 2bsd directory of the CSRG archive CDs. feedback and ok jmc@
* the glob stat limit is way too low. bump to 2048.tedu2012-01-202-7/+7
| | | | | while here, failed stats should count against the limit too. ok deraadt sthen stsp
* symetryespie2012-01-191-3/+3
| | | | ok jmc@, millert@
* Add missing header needed by iswspace()chl2012-01-181-1/+2
| | | | ok stsp@
* Add support for C99 %ls, %lc, and %l[ format directives to scanf(3).stsp2012-01-183-9/+210
| | | | | | Based on code from FreeBSD. Tested by myself (full release/install cycle on i386 and sparc64) and ajacoutot. Man page help from jmc.
* Remove assembly version of strlen from i386 and amd64, where it'smikeb2012-01-174-44/+6
| | | | | | | 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.
* fix SEE ALSO;jmc2012-01-171-2/+2
|
* Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.guenther2012-01-174-3/+222
| | | | | | 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
* Reimplement mutexes, condvars, and rwlocks to eliminate bugs,guenther2012-01-174-8/+8
| | | | | | | | | | | | | 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.
* net_addrcmp() dies. found out to be a horrific function by ericderaadt2012-01-173-158/+3
| | | | ok guenther
* POSIX indicates that some fields should be computed even if notmillert2012-01-161-2/+68
| | | | | | 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@
* Document the \-C output format generated by VIS_ALLguenther2012-01-161-2/+11
| | | | ok deraadt@
* Document early history of a few functions specifically mentioned in 2BSDschwarze2012-01-153-6/+59
| | | | | | 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@
* grammar;jmc2012-01-141-2/+2
|
* this is sparta^WPOSIX 2008espie2012-01-141-2/+7
| | | | okay millert@
* draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted byjmc2012-01-032-12/+10
| | | | | | Poul-Henning Kamp, freebsd pr docs/163771; ok sthen
* Updates regarding fts_close(3):schwarze2012-01-011-15/+5
| | | | | | | | | | 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@
* formatting errors, found using freebsd's "igor";jmc2011-12-241-3/+3
|
* some spelling fixes, found using freebsd's "igor" document verifier;jmc2011-12-231-3/+3
|
* Add new KERN_PROC_CWD sysctl to get the current working directory of a process.nicm2011-12-091-2/+7
| | | | ok guenther deraadt
* strdup and strndup both use malloc. Make this fact explicit.lum2011-12-081-3/+5
| | | | ok jmc@
* New fnmatch(3) implementation which is not recursive.stsp2011-12-061-232/+435
| | | | | | | 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
* Remove an OpenBSD-specific tweak regarding .Xr spacingschwarze2011-12-031-3/+3
| | | | | | | | 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@