only mmap a file if its size is larger than 0 bytes