summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/calloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework malloc. The new default implementation is based on dlmalloc from DougEric Andersen2003-12-301-41/+0
| | | | | | | Lea. It is about 2x faster than the old malloc-930716, and behave itself much better -- it will properly release memory back to the system, and it uses a combination of brk() for small allocations and mmap() for larger allocations. -Erik
* Per suggestion from Miles Bader, move calloc.c to libc/stdlib.Eric Andersen2002-08-071-0/+41
Also, Manuel notices that I forgot to check for when nmemb=0, which would result in a segfault, so fix that case as well. -Erik