summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
AgeCommit message (Collapse)Author
2003-10-16by popular demand, malloc guard pages. insert an unreadable/unwriteableTed Unangst
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.
2003-10-15abort on errors by default. workaround so running out of memory isn'tTed Unangst
actually an error, A still applies full effect. suggested by phk. ok deraadt@ tdeval@
2003-10-02two minor fixes. set errno on recursive calls. ENOMEM suggested by marc@.Ted Unangst
lock before setting malloc_func, not after. ok cloder@ deraadt@
2003-10-01updates and corrections to the references in SEE ALSO;Jason McIntyre
mostly from tjr@freebsd's rev. 1.14 commit.
2003-09-30full stop. reverse course. remove all periods, so as to be alignedTed Unangst
with error messages elsewhere. requested ok deraadt@ henning@
2003-09-27remove register. end all sentences with periods.Ted Unangst
ok deraadt@ henning@ millert@
2003-09-26It is safe to pass free() a NULL pointer since C89; update example toTodd C. Miller
this effect. OK deraadt@ pvalchev@
2003-09-25improve example even moreTheo de Raadt
2003-09-22Document the optional argument support and as well as where we differ fromTodd C. Miller
POSIX and/or GNU. deraadt@ and jmc@ OK
2003-09-22If permutation is disabled (as it is via getopt(3) or when POSIXLY_CORRECTTodd C. Miller
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
2003-09-18expand on the realloc no-no section to include adjusting a length beforeTed Unangst
the allocation. ok deraadt@ markus@
2003-09-18typos from wiz@netbsd (including one from a PR from Quentin Garnier);Jason McIntyre
slight sync with NetBSD page; ok millert@
2003-09-08typo; ianm@cit.uws.edu.auTheo de Raadt
2003-09-07typos from Brian Poole;Jason McIntyre
ok deraadt@
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-08-04ansify function argumentsJean-Francois Brousseau
ok tdeval@
2003-08-01Rename rootd to needslash and invert its value. This fixes the checkTodd C. Miller
for ENAMETOOLONG, though since we use strlcpy() and strlcat() this is not a big deal. Problem found by vincent@
2003-07-31fix a protoTheo de Raadt
2003-07-21Compile llabs.cTodd C. Miller
2003-07-21llabs(3) for C99Todd C. Miller
2003-07-19- just warn in case of mmap/brk failureThierry Deval
- extend_pgdir and malloc_make_chunks return int, not void* ok tedu@
2003-07-18add missing includesDavid Krause
ok tedu@
2003-07-13Fix two cases where malloc() returns NULL but does not set errno to ENOMEM.Otto Moerbeek
ok tdeval@ henning@ millert@
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-04another term 3 & 4 from tholo after permissionTheo de Raadt
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02Remove some liesTodd C. Miller
2003-06-02Use the getopt() in getopt_long.c which supports some GNU extensions.Todd C. Miller
getopt.c is no longer compiled and will eventually be removed.
2003-06-01- section reorderJason McIntyre
- merge COMPATIBILITY - kill whitespace at EOL
2003-05-24typoTodd C. Miller
2003-05-24Say POSIX-2001 instead of Single Unix v3. They are the same but we generallyTodd C. Miller
mention POSIX compliance, not Single Unix compliance.
2003-05-14Unbreak 64-bit archs...Thierry Deval
2003-05-14Pointer cleaning. ok ian@, tedu@, krw@Thierry Deval
2003-05-14Delete reference to /usr/share/doc/papers/malloc.ascii.gz as we do notKenneth R Westerback
have it. We don't even have the directory /usr/share/doc/papers. ok millert@.
2003-05-12Ideas from NetBSD: document nmemb and include sradixsort in the NAME section.Paul Janzen
Also, stomp a comma splice.
2003-05-10typos;Jason McIntyre
2003-05-09Pass ndigit+1 as size arg to strlcpy() since ndigit doesn't include the NULTodd C. Miller
2003-05-09assembler versions of insque and remque for m68k, also from 4.4BSDTodd C. Miller
2003-05-09insque and remque are VAX instructions, no need for C functions; From 4.4BSDTodd C. Miller
2003-05-09Oops, forgot to add remque.c hereTodd C. Miller
2003-05-08move insque(3) and remque(3) from libcompat -> libc; they are now POSIXTodd C. Miller
2003-05-08move lsearch(3) and insque(3) from libcompat -> libc; they are now POSIXTodd C. Miller
2003-04-21Mention that stroul() et al *do* accept negative numbers, theyTodd C. Miller
just (effectively) cast to unsigned. ho@ OK
2003-04-10make the second example valid; ok millert@Jason Peel
2003-04-04strcat -> strlcatHans Insulander
ok deraadt@ tedu@ tdeval@
2003-04-02use strlcpy(); assumes buf is at least ndigit bytes long which is asTodd C. Miller
safe as we can get. deraadt@ OK
2003-03-06.Xr's;Jason McIntyre
typos in man page section ok deraadt@
2003-03-06Fix a pasto. (There is no ULLONG_MIN, for hopefully obvious reasons)Kjell Wooding
ok millert
2003-02-28Use int32_t, not long since this deals with 32bit quantities.Todd C. Miller
Inspired by a change in NetBSD and reported by Jan Johansson.