Call to mmap for file needs MAP_SHARED, corrects an off-by-one error in lseek