summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* dont' -> don't in comments;jmc2005-10-251-2/+2
| | | | from ray lai;
* tidy up examplesjaredy2005-10-113-17/+16
| | | | | | | | - use err() for error handling - add lint hints - spacing nits and missing braces ok otto
* fix a few warnings, keep the crypt stuff for later.espie2005-10-101-2/+2
| | | | okay otto@
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-101-3/+3
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* further knf and cleaning; ok tdevalderaadt2005-10-051-382/+364
|
* first KNF (no binary diffs)deraadt2005-10-051-1322/+1356
|
* spelling: you missed this one david ;)jmc2005-08-221-2/+2
|
* zap remaining rcsid.espie2005-08-0855-361/+52
| | | | | | Kill old files that are no longer compiled. okay theo
* tell people that atexit is bad; ok jmcderaadt2005-08-061-1/+7
|
* kill errant blank line;jmc2005-07-261-2/+1
|
* - typos, punctuation, layout, macro tweaksjaredy2005-07-269-34/+48
| | | | | | - break long lines ok jmc
* - typos, grammar, punctuation, layout tweaksjaredy2005-07-261-74/+156
| | | | | | | | - use `$' for command prompts - clean up: use a bullet list instead of adding junk to denote list items ok jmc
* provide a description of the EXAMPLE; ok jmcjaredy2005-07-261-2/+11
|
* note when these first appeared; ok jmcjaredy2005-07-261-1/+3
|
* kill errant full stop;jmc2005-07-071-2/+2
|
* got to be a pasto...jmc2005-07-071-4/+4
|
* Fix the unmapping of freed pages, leaving just 64k worth of cache pages.tdeval2005-07-071-58/+136
| | | | Prodded by art@ and fgsch@, ok deraadt@
* whitespace;jmc2005-07-011-4/+4
|
* More robust example of numeric argument handling. The old examplemillert2005-07-011-11/+23
| | | | | code would dereference NULL for mixed letter and number args. OK deraadt@
* no longer a need for the free(malloc(1)) hack, because the brk stuffderaadt2005-06-171-9/+5
| | | | | no longer needs initializing (we use mmap for malloc entirely now) noticed by kjell, ok dhartmei, tested by me
* no need to insert spacing between list members;jmc2005-06-071-13/+1
|
* adding pointer protection to 'G' was too heavyweight. Since malloc guardtedu2005-06-072-7/+14
| | | | should be generally usable, split this out into option 'P'. ok deraadt
* add a note describing latest guard featuretedu2005-05-241-1/+3
|
* handle sizeof(void *) allocations specially when using malloc guard.tedu2005-05-241-1/+31
| | | | they get a whole page and go right at the end of it. ok deraadt tdeval
* Update HISTORY fixing some facts, while it is not clear if theotto2005-05-111-2/+8
| | | | | environment stuff originates from AT&T or BSD. ok ok deraadt@ millert@ ian@
* major abi changes:espie2005-05-111-1/+1
| | | | | | | | | | | | | | | | | | * introduce the mbstate_t typedef. impacts gnu libiconv, which has already been taken care of. * Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with an external variable __mb_cur_max (impacts libX11 and various ports). * use mbstate in all the mb <-> wchar functions with state. * add a stub iswctype function allowing some ports to compile. bash and gdiff are missing wcscoll, and need to be told there's no i18n until this is fixed. Discussed and matthieu, otto, millert, kettenis, deraadt. Major libc bump
* mark up NULL w/ .Dv;jmc2005-04-141-2/+5
|
* make it crystal clear that errstr is NULL after successtedu2005-04-141-1/+4
|
* Xr readlink(1). ok jmc@otto2005-04-031-1/+2
|
* MMAP(2) malloc, here we go again.tdeval2005-03-311-222/+591
|
* ansi + de-registerpat2005-03-3035-397/+170
| | | | ok otto deraadt
* Do not promise anything about the contents of resolved on failure.otto2005-03-301-4/+4
| | | | ok millert@
* Make realpath() thread-safe. New implementation does not use chdir(2) at all.brad2005-03-292-124/+143
| | | | | | From: FreeBSD by Constantin S. Svintsoff <kostik (at) iclub.nsu.ru> ok otto@ millert@
* Document that historic BSD getopt(3) set optopt for each char, not justmillert2005-03-261-1/+14
| | | | on error.
* Fix typo that breaks compilation #ifndef __weak_alias; Francois Perradmillert2005-03-022-4/+4
|
* Be correct in our man pages when talking about NUL termination (that is,cloder2005-02-252-4/+4
| | | | | termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
* Stash the environment pointer we get from realloc() instead of justmillert2005-02-161-32/+24
| | | | | | | | setting a flag. That way when we are called again we can be sure to realloc() the right thing, regardless of the current value of environ. When the stashed value != environ (or when we are called for the first time), copy the existing entries from environ and set environ to the new value. OK deraadt@, beck@, djm@
* tidy up ERRORS and STANDARDS;jmc2005-02-071-7/+10
|
* tweaks from michael knudsen;jmc2004-12-221-6/+7
|
* Document why not to set optind = 0. Inspired by and OK jfb@millert2004-12-071-2/+20
|
* Check strlc{py,at} return value and return NULL upon truncation insteadmillert2004-11-301-10/+23
| | | | of silently truncating. OK deraadt@ otto@
* .{N,O}x fixes;jmc2004-11-221-3/+2
|
* add some missing $, ok djm@ 'That looks fine to me' millert@jsg2004-10-014-0/+8
|
* Add HISTORY; from Jose Nazariomillert2004-09-211-1/+7
|
* mention strtonum(3)jaredy2004-08-221-2/+7
| | | | ok millert jmc pedro
* Back out to brk(2) version.tdeval2004-08-111-554/+189
| | | | | | | The mmap(2) code is cool and it has already uncovered some bugs in other code. But some issues remain on some archs, and we can't afford that for production. Don't worry, it will be back soon... I'll make sure of it...
* - Remove the userland data limit check. It's mmap(2)'s job.tdeval2004-08-051-37/+108
| | | | | | - When malloc_abort==0 (MALLOC_OPTIONS=a), don't abort in wrterror(). fine deraadt@
* Missing check for NULL.tdeval2004-08-041-2/+2
|
* It's not really possible to make strtonum() deal with unsigned longmillert2004-08-032-35/+21
| | | | | long values properly so don't bother trying. This greatly simplifies the code. tedu@ OK with input from otto@ and others.
* After a long gestation period, here comes our custom version of malloc(3)tdeval2004-08-011-181/+475
| | | | | | | | | | using mmap(2) instead of sbrk(2). To make a long story short, using mmap(2) in malloc(3) allows us to draw all the benefits from our mmap(2)'s randomization feature, closing the effort we did for returning memory blocks from random addresses. Tested for a long time by many, thanks to them. Go for it ! deraadt@