summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@
* Do not forget to test the lower bound if the upper bound > LLONG_MAX.otto2004-07-161-1/+3
| | | | ok millert@
* Avoid comparing unsigned and signed long longs since the signedmillert2004-07-161-12/+18
| | | | | one will get implicitly cast to unsigned. Fixes a bug with negative minval noticed by mjc@. Similar to a diff from miod@. OK miod@.
* kill dead .Xr to memory(3);jmc2004-07-021-3/+2
| | | | from kjell@
* Working hcreate(3) et al from NetBSD (cgd) via ray at cyth dot net.millert2004-06-243-5/+401
| | | | Now passes the regress tests.
* errno -> err in a structure. OK deraadt@marc2004-06-211-4/+4
|
* An optional argument cannot start with '-', even if permutation ismillert2004-06-031-4/+5
| | | | disabled. Magne Oestlyngen.
* improved man page, with example and error strings, suggested by deraadt@tedu2004-05-061-36/+56
| | | | man help jmc@
* typo; sq@oganer.netderaadt2004-05-061-2/+2
|
* sort SEE ALSO;jmc2004-05-041-2/+2
|
* Be smarter about signed vs. unsigned (produces better error messages).millert2004-05-031-2/+2
| | | | OK otto@
* Add _Exit(3) as per C99. Discussed with espie@ some time ago.millert2004-05-033-12/+64
|
* typo spotted by grangetedu2004-05-031-2/+2
|
* strtonum, a nicer version of strtoll, by millert and myself.tedu2004-05-033-2/+191
| | | | ok deraadt@ millert@
* Clean up malloc_active state when aborting.tdeval2004-04-121-3/+5
| | | | | | | This allows for safe abort handling, without tripping into false recursivity problems. Ok tedu@, deraadt@
* Sanity fix.tdeval2004-02-191-2/+5
| | | | reviewed by deraadt@, tedu@
* kill memory.3;jmc2004-02-102-66/+1
| | | | suggested by deraadt@
* punctuate variable; okay jmc@.espie2004-02-091-2/+2
|
* Traditionally, getopt(3) has treated "--foo" the same as "--". However,millert2004-02-041-10/+9
| | | | | | | | this can cause confusion when a user tries to use a long option with a program that only supports short options. Furthermore, it appears to be in violation of POSIX, which states that "--" shall indicate the end of argument processing, not any string that begins with "--". OK otto@ and closes PR 3666.
* H comes before J;jmc2004-02-041-6/+6
|
* Obsoleted by getopt_long.cmillert2004-02-031-116/+0
|
* Correct the arm ifdefs previously inserted, is working correctly now.drahn2004-02-031-3/+3
|
* 'F'reeguard doc, as reported missing by brad. nit free thanks to jmctedu2004-02-021-1/+8
|
* s/arm32/arm/ with VFP bit to match netbsd.drahn2004-02-011-3/+3
|
* the rest of the libs stuff; from art@ againmickey2004-01-281-2/+3
|
* use new .St macro;jmc2004-01-253-5/+5
|
* `Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))jmc2004-01-235-10/+10
| | | | discussed with todd@
* Call _exit() not exit() from abort() if we are unable to kill ourselvesmillert2004-01-201-3/+3
| | | | | to avoid flushing stdio twice. This code path should never really happen though. Also make the function declaration ANSI. OK deraadt@
* - Rename index to longindex and explain its use.fgsch2004-01-061-9/+20
| | | | | | | | - Talk about zeroing the last element of the longopts array. - Remove '?' from the switch and some KNF to the code. - Change 0's to NULL where appropriate. jmc@ ok.
* wording improvements from Brian Poole;jmc2003-11-251-5/+4
| | | | kill a .Pp before a display;
* only whine about recursion once, so we don't get into problems with loops.tedu2003-11-191-19/+26
|
* by popular demand, malloc guard pages. insert an unreadable/unwriteabletedu2003-10-162-5/+52
| | | | | | | | page after each page size allocation to detect overrun. this is somewhat electric fence like, while attempting to be mostly usable in production. also, use tdeval's chunk randomization code. enabled with the G option. ok deraadt and co.
* abort on errors by default. workaround so running out of memory isn'ttedu2003-10-151-3/+3
| | | | | actually an error, A still applies full effect. suggested by phk. ok deraadt@ tdeval@
* two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@.tedu2003-10-021-4/+7
| | | | | lock before setting malloc_func, not after. ok cloder@ deraadt@
* updates and corrections to the references in SEE ALSO;jmc2003-10-011-7/+11
| | | | mostly from tjr@freebsd's rev. 1.14 commit.
* full stop. reverse course. remove all periods, so as to be alignedtedu2003-09-301-40/+40
| | | | with error messages elsewhere. requested ok deraadt@ henning@
* remove register. end all sentences with periods.tedu2003-09-271-16/+16
| | | | ok deraadt@ henning@ millert@
* It is safe to pass free() a NULL pointer since C89; update example tomillert2003-09-261-3/+2
| | | | this effect. OK deraadt@ pvalchev@
* improve example even morederaadt2003-09-251-3/+4
|
* Document the optional argument support and as well as where we differ frommillert2003-09-221-32/+83
| | | | POSIX and/or GNU. deraadt@ and jmc@ OK
* If permutation is disabled (as it is via getopt(3) or when POSIXLY_CORRECTmillert2003-09-221-2/+9
| | | | | | is set), we can accept an optional arg separated by whitespace. Previously, the optional arg needed to be adjacent to the option character. deraadt@ OK