#include <stdint.h> struct filepos { char *filename; int flags; /* to pass to open(2) */ uint64_t offset; }; void dedupe_range(uint64_t length, struct filepos src, struct filepos *dsts);