summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2006-06-06Fix 'double by a factor of two' and make cache options a bit morePedro Martelletto
descriptive while at it, input and okay jmc@
2006-05-19fix a !foo & bar.Thordur I. Bjornsson
ok miod@, tedu@, pedro@
2006-05-14Fix the second malloc_ulimit regression: maintaining the free listOtto Moerbeek
requires memory; try to make sure we have it. If all fails, leak instead of crash. Test case originally found by cloder@, fix tested by many.
2006-04-25strtonum does not require limits.hTed Unangst
spotted by ray some time ago
2006-04-24Do not leave an hole in the directory list if allocation of theOtto Moerbeek
region succeeds, but allocation a required page dir failed. This can happen if we're really close to ulimit after allocation the region of the size requested. See malloc_ulimit1 regress test. Tested by many; thanks.
2006-04-18delint; original from deraadt@ with fixes from tdeval@ and me;Otto Moerbeek
tested by quite a few developers. ok deraadt@
2006-04-04POSIX says tdelete() returns the parent of the deleted node. Sadly theOtto Moerbeek
root node doesn't have a parent, and POSIX does not say what should be done in that case. Warn developers that different implementations may do different things.
2006-04-04When tdelete() is used to delete the root node, don't return aMoritz Jodeit
pointer to the freed root node, but return a pointer to the new root node. POSIX does not define, what should be returned in that case. Fixes Coverity CID 2528. ok millert@ otto@
2006-04-02Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX andOtto Moerbeek
remove redundant check on size. ok millert@ deraadt@
2006-03-29Xr to strtonum(3), because vice versa is already the caseAlexander von Gernler
ok jmc@ otto@
2006-03-26Add warning about malloc(num * size) and recommend calloc() instead,Ray Lai
or if malloc must be used suggest check. Get rid of "one". OK deraadt@ and jmc@, OK kjell@ to earlier version with "one"s.
2006-03-15Removes extraneous variables from getopt(3). Inspired by one ofRay Lai
David Hill's diffs. ok otto
2006-02-22Avouid a race in atexit() handling by introducing a lock. ProblemOtto Moerbeek
originally reported by Gergely Kovacs; help from dhartmei@; ok tedu@ millert@
2006-02-14quick path for free(0)Marc Espie
`looks to be safe' millert, okay tedu.
2006-01-30document posixness;Jason McIntyre
fixes pr #4996, from joachim schipper;
2006-01-18missing auxillary verbJacob Meuser
"yes, that is correct." jmc@ (a while back)
2006-01-15back out previous - imaxabs is already listed;Jason McIntyre
2006-01-14Xr imaxabs()Todd C. Miller
2006-01-14fix the .Fn line; ok millertJason McIntyre
2006-01-14sort SEE ALSO;Jason McIntyre
2006-01-13Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()Todd C. Miller
2006-01-10Return inf or nan as per printf() not Inf, Infinity or Nan (from dtoa)Todd C. Miller
Remove an extraneous check for dtoa returning Inf/Nan
2006-01-10Use localeconv() to get the locale-specific radix char like printf does.Todd C. Miller
2006-01-10Nan and Infinity can be negativeTodd C. Miller
Decimal point was missing for some exponential output Only divide sign by 10 once per loop Add a missing NUL terminator for one case If there is no whole number portion, print a leading zero (e.g. 0.1 not .1)
2005-12-23Prototypes live in <search.h>Todd C. Miller
2005-11-30Use sysctl(KERN_ARND) to get n bytes, instead of just 4 at a timeOtto Moerbeek
and remove fallback code. If somebody is dumb enough to make the sysctl fail using systrace, he deserves what he gets. Saves 7 syscalls on process startup. looks good miod@ ok deraadt@ tedu@
2005-11-10add $OpenBSD$ tags, as requested by dtucker.Marc Espie
2005-10-26Remove obsolete comment. ok deraadt@Otto Moerbeek
2005-10-26clarifications from ray lai;Jason McIntyre
tweaked by tedu@ and myself;
2005-10-25dont' -> don't in comments;Jason McIntyre
from ray lai;
2005-10-11tidy up examplesJared Yanovich
- use err() for error handling - add lint hints - spacing nits and missing braces ok otto
2005-10-10fix a few warnings, keep the crypt stuff for later.Marc Espie
okay otto@
2005-10-10Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.Marc Espie
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
2005-10-05further knf and cleaning; ok tdevalTheo de Raadt
2005-10-05first KNF (no binary diffs)Theo de Raadt
2005-08-22spelling: you missed this one david ;)Jason McIntyre
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-08-06tell people that atexit is bad; ok jmcTheo de Raadt
2005-07-26kill errant blank line;Jason McIntyre
2005-07-26- typos, punctuation, layout, macro tweaksJared Yanovich
- break long lines ok jmc
2005-07-26- typos, grammar, punctuation, layout tweaksJared Yanovich
- use `$' for command prompts - clean up: use a bullet list instead of adding junk to denote list items ok jmc
2005-07-26provide a description of the EXAMPLE; ok jmcJared Yanovich
2005-07-26note when these first appeared; ok jmcJared Yanovich
2005-07-07kill errant full stop;Jason McIntyre
2005-07-07got to be a pasto...Jason McIntyre
2005-07-07Fix the unmapping of freed pages, leaving just 64k worth of cache pages.Thierry Deval
Prodded by art@ and fgsch@, ok deraadt@
2005-07-01whitespace;Jason McIntyre
2005-07-01More robust example of numeric argument handling. The old exampleTodd C. Miller
code would dereference NULL for mixed letter and number args. OK deraadt@
2005-06-17no longer a need for the free(malloc(1)) hack, because the brk stuffTheo de Raadt
no longer needs initializing (we use mmap for malloc entirely now) noticed by kjell, ok dhartmei, tested by me
2005-06-07no need to insert spacing between list members;Jason McIntyre