libc: replace malloc() with a classic K&R style malloc algorithm
authorAlan Cox <alan@linux.intel.com>
Fri, 17 Jun 2016 11:56:07 +0000 (12:56 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 17 Jun 2016 11:56:07 +0000 (12:56 +0100)
commit1847b4437363398e4d53b192161375212d9ef90b
tree165a91dadb95e0aa033ded0328c24669324dc74e
parent2d3b134056050427298b703a01e6b8b30da60bc8
libc: replace malloc() with a classic K&R style malloc algorithm

Shorter, simpler and neater. Hopefully correct (or it'll be fun debugging all the
app crashes ;-)). realloc would benefit from being smart about using the adjacent
buffers to grow rather than the dumb free/alloc approach.

Alan
Library/libs/calloc.c
Library/libs/error.c
Library/libs/free.c
Library/libs/malloc-l.h [deleted file]
Library/libs/malloc.c
Library/libs/realloc.c