trivially copy a file using a buffer or mmap(2).