title: How to use mmap to allocate a memory in heap?
body: <p>Just the question stated, how can I use <code>mmap()</code> to allocate a memory in heap? This is my only option because <code>malloc()</code> is not a reentrant function.</p>