Home | History | Annotate | Download | only in stdlib
History log of /src/lib/libc/stdlib/malloc.3
RevisionDateAuthorComments
 1.48  01-Jun-2016  wiz Fix manually applied patch. Mark up NULL with Dv.
 1.47  01-Jun-2016  pgoyette Document return value for realloc(3) when size is 0. From PR lib/47384
 1.46  07-Nov-2015  wiz Sort SEE ALSO.
 1.45  07-Nov-2015  nros Add the C11 function aligned_alloc to libc.
 1.44  26-Jul-2015  wiz Spacing; Fn -> Xr for jemalloc.
 1.43  26-Jul-2015  kamil Add history of allocators

Idea accepted by <christos>
No objctions from <riastradh>
 1.42  26-Jul-2015  kamil mandoc lint
 1.41  06-Feb-2015  wiz Remove trailing whitespace.
 1.40  05-Feb-2015  christos Revert addition to reallocarray to the malloc man page, but keep
the examples. Add separate manual page to reallocarray explaining
what are the problems with it.
 1.39  05-Feb-2015  christos Add and use reallocarray() to prevent a multiplication overflow in allocation.
Reported by Guido Vranken, thanks!
 1.38  03-May-2010  jruoho Fix previous commit by also moving the type of _malloc_options. In addition,
add a (commented) note that _malloc_message should be documented better.
 1.37  03-May-2010  jruoho Move the '_malloc_options' variable from malloc(3) to jemalloc(3).
 1.36  03-May-2010  jruoho Move the examples to where they belong, in EXAMPLES.
 1.35  03-May-2010  jruoho Split the implementation details of malloc(3) to a separate jemalloc(3)
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.
 1.34  03-May-2010  jruoho Add more markup.
 1.33  30-Apr-2010  jruoho Also: in the example EOVERFLOW is probably better than ENOMEM.
 1.32  30-Apr-2010  jruoho As err(3) instructs, use EXIT_FAILURE in the example.
 1.31  30-Apr-2010  jruoho Steal the "malloc() vs. calloc()" -idiom from the OpenBSD's malloc(3).

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.
 1.30  20-Jul-2009  pooka Re-add explanation of how to correctly use realloc.
 1.29  18-May-2009  wiz Grammar fix.
 1.28  13-May-2009  wiz Revert parts of v1.25 (jemalloc):
Re-add RCS Id, remove superfluous .Pp, join line, comment out limits(1) xref.
 1.27  12-Mar-2009  joerg Explicitly mark : as literal, use Pq.
 1.26  15-Oct-2007  yamt branches: 1.26.16;
we don't have reallocf.
 1.25  06-Oct-2007  ad Update for jemalloc.
 1.24  24-Apr-2006  wiz branches: 1.24.10;
Bump date for previous.
 1.23  24-Apr-2006  liamjfoy - add a missing ;
- use 'size' instead of 'nsize', makes more sense

ok christos@
 1.22  25-Feb-2006  wiz Fix some typos.
 1.21  19-Sep-2003  itojun add warning on realloc() size de-synchronization. from openbsd
 1.20  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.19  16-Apr-2003  wiz Use
.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.
 1.18  01-Oct-2002  wiz New sentence, new line. From Robert Elz.
 1.17  20-Aug-2002  wiz Mark up NULL and ENOMEM.
 1.16  11-Aug-2002  yamt - more description about realloc.
- mention errno.
- add FILES section for malloc.conf.
from openbsd.
 1.15  07-Feb-2002  ross Generate <>& symbolically.
 1.14  15-Jan-2002  wiz Use Aq for email address.
 1.13  16-Sep-2001  wiz Drop unnecessary whitespace and .Pp, sort SEE ALSO, sort sections,
and some minor fixes.
 1.12  09-Jan-2000  hubertf branches: 1.12.6;
Document that errno is set to ENOMEM if no memory can be allocated.
 1.11  10-Sep-1999  kleink Restore the behaviour of not setting errno to ENOMEM when allocating 0
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.
 1.10  02-Aug-1999  lukem replace malloc(3) with one from freebsd which documents our new malloc.c
(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)
 1.9  22-Mar-1999  garbled Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Wheee!
 1.8  05-Feb-1998  perry add LIBRARY section to man page
 1.7  30-Jan-1998  perry update to lite-2
 1.6  15-Jul-1997  mikel xref getpagesize(3) not obsolete getpagesize(2), sort xrefs
 1.5  28-Dec-1995  thorpej New-style RCS ids.
 1.4  17-Aug-1995  jtc pagesize(2) -> getpagesize(2)
 1.3  15-Dec-1993  jtc Remove unwanted comma from NAME section.
 1.2  01-Aug-1993  mycroft Add RCS indentifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  30-Jan-1998  perry import lite-2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.12.6.7  18-Oct-2002  nathanw Catch up to -current.
 1.12.6.6  27-Aug-2002  nathanw Catch up to -current.
 1.12.6.5  13-Aug-2002  nathanw Catch up to -current.
 1.12.6.4  22-Mar-2002  nathanw Catch up to -current.
 1.12.6.3  08-Mar-2002  nathanw Catch up to -current.
 1.12.6.2  28-Jan-2002  nathanw Catch up to -current.
 1.12.6.1  08-Oct-2001  nathanw Catch up to -current.
 1.24.10.1  06-Nov-2007  matt sync with HEAD
 1.26.16.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

RSS XML Feed