mmap checks file open flags
mmap checks file open flags