| www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/ansi/stdlib/malloc.c | search |
To download the latest version of this file, click on most recent revision number, then use your browser's "save page as" feature.
Up to djgpp/src/libc/ansi/stdlib/Update file copyright lines aftr running src/copyright.pl
Fix namespace corruption when brk call was added to align sbrk'ed memory. Directly call the stub version (in crt0.o) instead of the C wrapper.
Make sure sbrk() return value is 8 byte aligned. This makes sure the data pointer returned to the user is also 8 byte aligned. Once it's aligned it will stay aligned unless the user calls sbrk() with a non-aligned size.
Reject requests larger than 2GB - 64KB.
Add malloc debugging and diagnostic facilities.
realloc: Try extending the block before allocating a new one.
Factored out certain defines and definitions to <libc/malloc.h>.
Add missing #include <libc/stubs.h>
check for malloc returning NULL in realloc()
update copyright dates
Avoid mixing signed and unsigned int (spotted by Mark Elbrecht).
make many variables non-global
import djgpp 2.02
import djgpp 2.00
| webmaster | delorie software privacy |
| Copyright © 2020 by DJ Delorie | Updated Apr 2020 |