summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* When an RPC client program encounters ENOMEM while trying to printschwarze2009-06-011-2/+4
| | | | | | an error message, rather skip the error message than dereferencing a NULL pointer. debugging help and ok kjell@
* Split getpw{nam,uid} off into their own man page. Hopefully, thismillert2009-06-013-107/+252
| | | | | will help people understand that endpwent() is not normally needed. OK deraadt@ jmc@
* Document AI_NUMERICSERV; feedback and ok millert@jacekm2009-05-061-2/+9
|
* Fix signed vs unsigned issue with memcmp/strncmp where the size parameterdrahn2009-05-032-10/+16
| | | | was incorrectly being treated as signed. ok miod@
* document that bogus lines are silently ignoredderaadt2009-04-291-2/+3
| | | | ok millert
* Remove the stderr spray balony. Library functions should indicate failurederaadt2009-04-291-23/+2
| | | | | | | (and libc and some others can use errno to indicate more detailed results). They should not print trash to stderr, let alone assume that stderr is open to the place they think it is. ok millert
* junk spacederaadt2009-04-291-1/+1
|
* Correct the declaration of the dladdr() stub so that it has the correctguenther2009-04-221-3/+5
| | | | | | lint information originally ok'ed deraadt@ right before the 4.5 tree lock
* remove from gen so that lint doesn't check gen if assembly versionsmartynas2009-04-2113-28/+29
| | | | are available. spotted by theo
* - ldexp implementation has issues. switch to the one from libmmartynas2009-04-1930-3013/+162
| | | | | | - remove frexp in hppa64, cloned from hppa - move generic ieee754 implementations of modf and ldexp to gen ok kettenis@, "looks good" millert@
* allow building without SHA384 and SHA512 (i.e. SHA256 only) withdjm2009-04-151-2/+5
| | | | -DSHA256_ONLY in order to save space; ok deraadt@
* document that no leading whitespace is permitted between the option andokan2009-04-121-3/+5
| | | | | | argument if the argument is deemed to be optional ('::'). feedback and ok jmc@ and millert@
* accept %F, which actually behaves the same as %f. per C99martynas2009-04-052-4/+5
| | | | ok millert@
* this is not a write-only register. might have caused to optimizemartynas2009-04-051-2/+2
| | | | it away. ok miod@
* document superuser requirements, with input from jmc@espie2009-03-281-2/+8
|
* supplement previous: add /etc/netid to FILES section; ok jmc@, ajacoutot@schwarze2009-03-271-1/+3
|
* getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)schwarze2009-03-273-70/+137
| | | | | | | | | | | | | | contains a matching entry, use that and refrain from accessing YP. getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains a matching entry before the first YP entry, use that and stay away from YP. Taken together, this allows a solution to the following problem pointed out by deraadt@: When YP was configured but temporarily unavailable, even root login would block, hindering you when trying to do repairs. To avoid this, you can now provide a static entry for root in /etc/netid. Using suggestions from miod@ otto@ blambert@ jmc@. "commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc@.
* add a HISTORY section to fts(3).sobrado2009-03-231-2/+9
| | | | | | | diff proposed by an anonymous user on bugs@; tweaked by jmc@; verified using the superb 4BSD collection at pdp-11.org.ru (thanks form@). ok jmc@
* Return -1 from mktemp_internal() on EINVAL like we used to.millert2009-03-201-3/+3
| | | | OK oga@ thib@
* correct argument type for swap64(); from Thomas Pfaffjmc2009-03-171-3/+3
|
* Add glob(7) and refer to it. OK jmc@ sobrado@millert2009-03-052-6/+8
|
* Update to match mktemp.c changesmillert2009-03-011-4/+4
|
* New mktemp(3) based on the one from portable mktemp(1). Now includesmillert2009-03-011-89/+88
| | | | | | | digits (in addition to letters) in the random file name. Instead of looping forever, mktemp(3) will terminate when it has tried 2 * N^62 times where N is the number of X's. This is effectively forever for lots of X's.
* Add missing braces. This is why we use braces for indented block thatmillert2009-02-181-2/+3
| | | | are more than a couple of lines...
* when the template is entirely XXX characters, would crashderaadt2009-02-171-4/+6
| | | | | from Vadim Zhukov <persgray@gmail ok millert
* kill whitespace at eol;jmc2009-02-131-2/+2
|
* decribe 'F' better and mention flags are debugging aids; ok tedu@ jmc@otto2009-02-131-8/+10
|
* Avoid level going negative on deep (i mean really deep) dirs. Reportedotto2009-02-111-1/+9
| | | | by Maksymilian Arciemowicz. ok kettenis@ millert@
* correct function definitions; from Markus Bergkvistjmc2009-02-101-4/+4
|
* fix typopyr2009-01-311-3/+3
| | | | ok jmc@
* Change section: we're talking about the symlink system call, not theguenther2009-01-301-2/+2
| | | | | | generic symlink info ok jmc@
* tweak previous;jmc2009-01-301-4/+4
|
* Update to reflect renaming of the st_[acm]timespec members to st_[acm]timguenther2009-01-291-22/+61
| | | | | | | per the POSIX 1003.1-2008 spec. Also, tweak the information about what system calls hit which timestamps ok jmc@
* from Yoshihiko Sarumaru, freebsd pr #76333: fseek(3) can clear EOF too;jmc2009-01-291-4/+2
| | | | ok millert
* Remove support for kerb4 '.' instance separator, kerb4 is dead. OK jacekm@millert2009-01-152-20/+18
|
* Man page for wcstof(3), wcstod(3) and wcstold(3).kettenis2009-01-132-3/+80
|
* Crank minor because of addition of wcsto* functions.kettenis2009-01-131-1/+1
|
* Add wcstof(3) and wcstold(3).kettenis2009-01-135-120/+162
| | | | ok miod@
* Add wcstoimax(3) and wcstoumax(3).kettenis2009-01-133-3/+40
| | | | ok miod@
* The process number is longer used to replace trailing 'Xs'.tobias2009-01-101-4/+3
| | | | ok jmc, millert
* reintroduce extra malloc protections, but avoiding the use ofdjm2009-01-031-164/+229
| | | | | | PAGE_(SIZE|SHIFT|MASK) defines that evaluate to variables on the sparc architecture; ok otto@ tested on my reanimated ss20
* PAGE_SIZE is not a valid symbol to use in that way. In particular,deraadt2008-12-311-235/+164
| | | | | | | on sparc, it expands to something that just plain does not work, because the page size can be variable. Sorry we didn't spot this before. Backing it all out to allow sparc to build; please find a different way to fix it.
* Remove mprotecting of struct dir_info introduced in previous commitdjm2008-12-302-46/+4
| | | | | | | (MALLOC_OPTIONS=L). It was too slow to turn on by default, and we don't do optional security. requested by deraadt@ grumbling ok otto@
* extra paranoia for malloc(3):djm2008-12-292-165/+278
| | | | | | | | | | | | | | | | Move all runtime options into a structure that is made read-only (via mprotect) after initialisation to protect against attacks that overwrite options to turn off malloc protections (e.g. use-after-free) Allocate the main bookkeeping data (struct dir_info) using mmap(), thereby giving it an unpredictable address. Place a PROT_NONE guard page on either side to further frustrate attacks on it. Add a new 'L' option that maps struct dir_info PROT_NONE except when in the allocator code itself. Makes attacks on it basically impossible. feedback tedu deraadt otto canacar ok otto
* Fix file descriptor leak in fts_children(); okay dhill@, millert@,pedro2008-12-271-2/+4
| | | | tedu@, thib@.
* repair the ARC4 story; ok jmc djm millertderaadt2008-12-231-5/+7
|
* ddb.console does not override machdep.kbdreset, so don't say it does;jmc2008-12-231-7/+2
|
* document yp_maplist(); from Ingo Schwarzejmc2008-12-222-7/+23
| | | | ok deraadt
* The example for detecting malicious PTR records could be easily misinterpreted.jacekm2008-12-221-5/+4
| | | | Make it less ambiguous; ok gilles@ claudio@
* Add man page for wcstol and friends.kettenis2008-12-202-4/+97
| | | | ok jmc@