Smarter implementation of calloc(3), which uses the fact that mmap(2)
authorotto <otto@openbsd.org>
Fri, 22 Aug 2008 17:14:56 +0000 (17:14 +0000)
committerotto <otto@openbsd.org>
Fri, 22 Aug 2008 17:14:56 +0000 (17:14 +0000)
commitc548cf07a3493b2524ab3932ec29825cf08f0b62
treed698a97816217f50118ac5fd5d184b7f1c16677b
parent975314b9368dd4d77dca7fedc692a2924ffcadb5
Smarter implementation of calloc(3), which uses the fact that mmap(2)
returns zero filled pages; remember to replace this function as well if you
provide your own malloc implementation; ok djm@ deraadt@
lib/libc/stdlib/Makefile.inc
lib/libc/stdlib/malloc.c