use MAP_FAILED check for mmap()