summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen (follow)
Commit message (Collapse)AuthorAgeFilesLines
* RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;jmc2012-08-181-6/+6
|
* In sysconf(), don't bother querying the kernel for userspace-onlymatthew2012-06-241-40/+19
| | | | | | values or features that POSIX now requires to always be provided. From Brad; ok guenther and me; incorporates feedback from millert too
* More sysconf(3)-y and pathconf(3)-y goodness from Brad.matthew2012-05-141-29/+231
| | | | ok guenther, millert (and me); bulk build test by naddy
* Since threads are becoming more common, this "work around thederaadt2012-04-121-136/+0
| | | | | | compiler not doing alloca in C using malloc" is unworkable. It is not safe, and we can never use it. ok guenther kurt
* more rfork mop-upderaadt2012-04-121-3/+3
|
* complete function name.espie2012-04-111-2/+2
| | | | | | | This shit is so silly, length-wise, that it still makes some sense if you forget to write half of it. (noticed by jmc@)
* tweak previous;jmc2012-04-116-44/+36
|
* fuss with detailsespie2012-04-116-31/+36
|
* new clean-room manpages for posix_spawn, unencumbered by any POSIX bullshit.espie2012-04-1111-1096/+333
| | | | | | "just commit it" deraadt@ (nits to be fixed soon)
* Document new KERN_NTHREADS and KERN_MAXTHREAD sysctlsguenther2012-04-101-2/+8
|
* range check st_size before calling calloc()deraadt2012-04-061-3/+7
| | | | ok millert
* Document that openat(), etc are safe to call from a signal handler.matthew2012-04-031-20/+20
| | | | | | While here, recognize that _Exit() and raise() are C functions. ok deraadt@, guenther@, jmc@
* 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
|
* 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
* 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 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@
* 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@
* 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@
* Document the \-C output format generated by VIS_ALLguenther2012-01-161-2/+11
| | | | ok deraadt@
* 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@
* Add new KERN_PROC_CWD sysctl to get the current working directory of a process.nicm2011-12-091-2/+7
| | | | ok guenther deraadt
* 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
* Fix toprec handling in cgetnext(). OK otto@millert2011-10-141-4/+9
|
* KERN_BUFCACHEPERCENT defaults to 20%, not 10%; from Juha Erkkilajmc2011-09-251-3/+3
| | | | ok ariane
* Stop using the latin1 character set in the "C" locale. This behaviour wasstsp2011-09-221-18/+17
| | | | | | | non-standard. Tools which aren't locale-aware should only print ASCII but were also printing latin1 which looks garbled in UTF-8 terminals. Folks who want to use an extended character set now must set LC_CTYPE. ok millert uwe naddy espie
* fix GLOB_KEEPSTAT without GLOB_NOSORT; the implicit sort was beingdjm2011-09-221-6/+44
| | | | | applied only to the gl_pathv vector and not the corresponding gl_statv array. reported in OpenSSH bz#1935; feedback and okay matthew@
* In glob(3), limit recursion during matching attempts. Similar to fnmatch fix.stsp2011-09-201-5/+17
| | | | | Also collapse consecutive '*' (from NetBSD). ok miod deraadt
* update vt100 example to vt200, as vt100 apparently is no longer in thejmc2011-09-141-6/+6
| | | | | | | termcap database; from Nils Anspach ok nicm
* Preserve errno across calls to open the password database(s), soguenther2011-09-051-2/+5
| | | | | | | that errno isn't changed when a normal user (who can't open spwd.db) does a lookup. Problem pointed out by Tim van der Molen (tbvdm at xs4all.nl)
* make -column lists pretty again;jmc2011-09-032-442/+441
| | | | | | | | | | specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
* in column lists, enforce the following ordering:jmc2011-08-301-3/+3
| | | | | | | | | .Bl -column header1 header2 ... <Bl flags> mixing things up confuses mandoc, and adding flags in can screw up the list. this hopefully just makes things a bit safer (and more consistent). (one more bit of work left and all column lists should format how we want)
* At some point we've switched to the VFP floating-point--unlike FPAmartynas2011-07-261-3/+3
| | | | | | | | | it actually stores floats in natural-endian--therefore the existing checks became wrong. Take into account __VFP_FP__, effectively bringing back the old behavior. This way it will work now, and in the future when some of our platforms are switched to FPA, where it's much faster.
* __arm32__ -> __arm__, since our new compiler isn't defining themartynas2011-07-261-3/+3
| | | | former anymore. OK miod@.
* Add (rough draft) documentation for fdopendir(3) and the 15 newmatthew2011-07-182-4/+63
| | | | | | | XXXat(2) system calls from POSIX 2008. Editing will be done in tree. General style discussed with jmc@, schwarze@, and deraadt@ ok jmc@
* Expose a bunch of new functionality from POSIX 2008: openat(2),matthew2011-07-181-3/+1
| | | | | | | | | | | | | fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and fdopendir(3). "Minor" libc bump. Tested in a bulk build by naddy@ Much help from guenther@, thib@, tedu@, oga@, and others. ok deraadt@, naddy@
* Implement fdopendir(3) and refactor opendir(3) and fdopendir(3) to usematthew2011-07-181-22/+62
| | | | | | | | | | | a common __fdopendir() function. Also, take advantage of the new O_DIRECTORY and O_CLOEXEC flags in opendir(3). (Currently fdopendir(3) is commented out; it will be enabled shortly alongside openat(2) et al.) Tested by naddy@ in a bulk build. tweaks and ok guenther@; stupid POSIX nit pointed out by oga@
* __opendir2, DTF_NODUP, and __DTF_READALL can die. struct direntderaadt2011-07-141-9/+2
| | | | | | | | dd_flags is renamed to the placeholder position dd_unused so that we can spot "broken software" which assumes we have Jan Simon Pendry's union mounts (we don't have them, and won't have them ever again). __opendir2 question spotted by matthew verified to not break ports by sthen
* Use stdio in getent() and reuse pfp from tcgetnext when calling getent().millert2011-07-101-36/+37
| | | | Cuts cap_mkdb system time in half. OK nicm@
* Move fabs(3) manual page from libm to libc, for consistency. Themartynas2011-07-082-4/+83
| | | | modf(3), frexp(3), ldexp(3), fpclassify(3) pages are in libc, too.
* Alias modfl to modf. This goes together with the previous bump.martynas2011-07-082-5/+25
|
* Revert (leaving the complex math part alone). Some stuff is dependingmartynas2011-07-085-5/+362
| | | | | on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
* tweak previous;jmc2011-07-081-3/+5
|