summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
AgeCommit message (Expand)Author
2012-12-30typo in comment, from Abhinav Upadhyay in PR 47385dholland
2011-05-18cleanup saving and restoring errno, and make it similar.christos
2011-05-13don't let readlink trash errno.;christos
2008-02-03fix posix_memalign; we are not going to support alignments > pagesize inchristos
2007-12-12make this compile againmacallan
2007-12-04move decls for _malloc_{pre,post}fork() to extern.hchristos
2007-11-28Sync phk malloc.c with the latest one from FreeBSD. This gives us thechristos
2006-11-24fix spelling of accidentally; from Zapherchristos
2006-10-08PR/34602: sushant: Bug in malloc implementation contains dead code inelad
2005-12-24__inline__ -> inlineperry
2005-11-29WARNS=4christos
2005-06-12Add missing __RCSID()lukem
2003-10-05Style fixes to reduce diff size against the FreeBSD version, notably:junyoung
2003-07-23call malloc_init() on first call to free/realloc, to make malloc.conf toitojun
2003-01-18Merge the nathanw_sa branch.thorpej
2002-12-09Add a couple of missing THREAD_UNLOCK's, for the error exit path.chris
2002-11-11Fix signed/unsigned comparison warnings.thorpej
2001-05-06More fixes:christos
2001-05-03PR/12810: Chris ?: malloc core-dumps when given large number as the argument.christos
2001-02-19convert from __progname to getprogname()cgd
2001-01-05we now have utrace, support it herejdolecek
2000-12-20fix sbrk castschristos
2000-07-06avoid losing precision warningschristos
2000-05-20Disable malloc's hints to the kernel - now that the madvise() syscallsimonb
2000-04-07Fix the bug introduced in rev 1.28 and actually caused failure on alpha;enami
2000-04-07Backout the previous backing out.enami
2000-01-31Back out the previous 2 revs. The delint'ing of this file causedthorpej
2000-01-23Delint.mycroft
2000-01-23Partially delint, and a few microoptimizations.mycroft
1999-09-10Restore the behaviour of not setting errno to ENOMEM when allocating 0kleink
1999-08-22Need "namespace.h".kleink
1999-07-08Make sure errno is set to ENOMEM if we return NULL.thorpej
1999-07-05index -> ldx (and similar in some related variable names). Avoids a lintthorpej
1999-07-05Oops, back out 1.21. Christos and I apparently stepped on each other.thorpej
1999-07-05s/index/idx/christos
1999-07-05Compute page size related parameters at run-time.thorpej
1999-07-05EXTRA_SANITY -> MALLOC_EXTRA_SANITY, consistently.thorpej
1999-07-04Only define MADV_FREE do MADV_DONTNEED if it's not already definedthorpej
1999-06-26The 'new malloc' (phk's malloc, from FreeBSD) is now our only malloc.tls
1999-01-29Protect access of state with a mutex. Miscellaneous notes:kleink
1998-11-15delintchristos
1998-08-26make memcpy into memmove in some casesperry
1998-08-10bzero->memset, bcopy->memcpy, bcmp->memcmpperry
1998-02-03remove obsolete register declarationsperry
1998-01-30update to lite-2perry
1997-07-21If port provides __weak_alias(), provide an Standard C and POSIX purejtc
1997-07-13Add local.h for local prototypes.christos
1997-04-07PR/3448: Bill Sommerfeld: Change "p" to __STRING(p)christos
1996-12-20don't confuse long and int; pointed out by lintcgd
1996-01-17The C standard says (about realloc) that "If size is zero and ptr isjtc