wrapper: move xmmap() to sha1_file.c