I have to memory map a file if there is not already one for that file. The code I provided is not working. I am calling this function twice from another file and each time it is creating different mmapPtr.I have to memory map a file if there is not alr