summaryrefslogtreecommitdiff
path: root/com32/lib/realloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Run Nindent on com32/lib/realloc.cH. Peter Anvin2009-05-291-72/+72
| | | | | | | | | Automatically reformat com32/lib/realloc.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* realloc(): put an absolute upper limit on slackH. Peter Anvin2008-02-271-1/+2
| | | | | | With loadfile() doing megabyte-sized trial-and-error allocations, we want to be able to do really set the size on the final allocation; thus constrain the amount of permitted slack to 4K max.
* realloc(): try to protect a block in the path of a growing objectsyslinux-3.62-pre13H. Peter Anvin2008-02-211-4/+15
| | | | | | When we realloc() a block larger, try to protect the free block following it from being immediately allocated by something else by placing it at the end of the freelist instead of the beginning.
* realloc(): better implementation allowing in-place growthH. Peter Anvin2008-02-211-17/+55
| | | | | | Change the realloc() implementation to allow in-place growth. This is an important step in handling files without knowing their sizes a priori.
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-2/+1
|
* Invert the sense of ARENA_SIZE_MASK to be consistent with klibcH. Peter Anvin2006-01-191-1/+1
|
* com32's realloc functionsyslinux-3.20-pre5Kenneth Fyfe2006-01-161-1/+1
| | | | | | | | | | | | | | Hello list, I've been playing with com32 programs lately and I've come across a a problem with the realloc function in libcom32. The code that rounds up the size looks to be missing a '~' operator, resulting in it truncating every request to a size of 0-15 bytes. The little patch below fixes it up to match the corresponding line in malloc, which makes it work for me. K.
* Very first cut at a klibc-derived C library for com32hpa2004-11-101-0/+49