ref: f55a034c33fd1a5b6b35f78abeef23741cb6f65f
dir: /src/libc/arch/amd64/darwin/_getheap.c/
static char heap[16384]; void * _getheap(void) { return heap; } void * _brk(void *addr) { static char *cur = heap; char *p = addr; if (p < heap || p > &heap[sizeof(heap) - 1]) return (void *)-1; return cur = p; }