memoryMap :: Maybe (Ptr a)The address to map to if MapFixed is used.
-> CSizeThe length of the mapping
-> [MemoryProtection]the memory protection associated with the mapping
-> MemoryMapFlag-> Maybe Fd-> COff-> IO (Ptr a)
Map pages of memory.
If fd is present, this memory will represent the file associated. Otherwise, the memory will be an anonymous mapping.
use mmap