summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.3
AgeCommit message (Collapse)Author
2016-06-01Fix manually applied patch. Mark up NULL with Dv.wiz
2016-06-01Document return value for realloc(3) when size is 0. From PR lib/47384pgoyette
2015-11-07Sort SEE ALSO.wiz
2015-11-07Add the C11 function aligned_alloc to libc.nros
2015-07-26Spacing; Fn -> Xr for jemalloc.wiz
2015-07-26Add history of allocatorskamil
Idea accepted by <christos> No objctions from <riastradh>
2015-07-26mandoc lintkamil
2015-02-06Remove trailing whitespace.wiz
2015-02-05Revert addition to reallocarray to the malloc man page, but keepchristos
the examples. Add separate manual page to reallocarray explaining what are the problems with it.
2015-02-05Add and use reallocarray() to prevent a multiplication overflow in allocation.christos
Reported by Guido Vranken, thanks!
2010-05-03Fix previous commit by also moving the type of _malloc_options. In addition,jruoho
add a (commented) note that _malloc_message should be documented better.
2010-05-03Move the '_malloc_options' variable from malloc(3) to jemalloc(3).jruoho
2010-05-03Move the examples to where they belong, in EXAMPLES.jruoho
2010-05-03Split the implementation details of malloc(3) to a separate jemalloc(3)jruoho
manual page. This way malloc(3) can follow the standard terse format used elsewhere in the libc, while additional details can be added to jemalloc(3). Note HISTORY and AUTHORS in jemalloc(3), and add some reading material to SEE ALSO.
2010-05-03Add more markup.jruoho
2010-04-30Also: in the example EOVERFLOW is probably better than ENOMEM.jruoho
2010-04-30As err(3) instructs, use EXIT_FAILURE in the example.jruoho
2010-04-30Steal the "malloc() vs. calloc()" -idiom from the OpenBSD's malloc(3).jruoho
While it may be debated how useful this is, good idiomatic usage examples are exactly the kind of thing one would hope to see more in manual pages.
2009-07-20Re-add explanation of how to correctly use realloc.pooka
2009-05-18Grammar fix.wiz
2009-05-13Revert parts of v1.25 (jemalloc):wiz
Re-add RCS Id, remove superfluous .Pp, join line, comment out limits(1) xref.
2009-03-12Explicitly mark : as literal, use Pq.joerg
2007-10-15we don't have reallocf.yamt
2007-10-06Update for jemalloc.ad
2006-04-24Bump date for previous.wiz
2006-04-24- add a missing ;liamjfoy
- use 'size' instead of 'nsize', makes more sense ok christos@
2006-02-25Fix some typos.wiz
2003-09-19add warning on realloc() size de-synchronization. from openbsditojun
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-04-16Usewiz
.In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
2002-10-01New sentence, new line. From Robert Elz.wiz
2002-08-20Mark up NULL and ENOMEM.wiz
2002-08-11- more description about realloc.yamt
- mention errno. - add FILES section for malloc.conf. from openbsd.
2002-02-07Generate <>& symbolically.ross
2002-01-15Use Aq for email address.wiz
2001-09-16Drop unnecessary whitespace and .Pp, sort SEE ALSO, sort sections,wiz
and some minor fixes.
2000-01-09Document that errno is set to ENOMEM if no memory can be allocated.hubertf
1999-09-10Restore the behaviour of not setting errno to ENOMEM when allocating 0kleink
units of storage and returning a null pointer in System V mode; this was broken by the `fix' in rev. 1.24. Also, as it is stated in ISO C that such operation does not constitute an allocation failure, do not abort() even if the `X' option is set. Amusingly enough the SVID, Fourth Edition, specifies the `unique pointer' return behaviour for this kind of allocation, so this is kind of mis-named.
1999-08-02replace malloc(3) with one from freebsd which documents our new malloc.clukem
(also from freebsd). comment out references to reallocf with .\"XXX" for now. i also fixed some roff misuse as well. replace calloc(3), free(3) and realloc(3) with links to malloc(3)
1999-03-22Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,garbled
so we shouldn't override it with versions in the manpages. Wheee!
1998-02-05add LIBRARY section to man pageperry
1998-01-30update to lite-2perry
1997-07-15xref getpagesize(3) not obsolete getpagesize(2), sort xrefsmikel
1995-12-28New-style RCS ids.thorpej
1995-08-17pagesize(2) -> getpagesize(2)jtc
1993-12-15Remove unwanted comma from NAME section.jtc
1993-08-01Add RCS indentifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd