Set errno = ENOSYS if mmap not supported.