X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_undo.h;h=e42a992d93e273494df04a840e965de3bc11a9bd;hp=ff5e47b970730ee65559a1aff6be68712a175303;hb=e43dc84fe91f64d8761aeda6338a1afbf701b7f5;hpb=3d99c9334fe3067c88772547b9c06acec21616ea diff --git a/ccan/failtest/failtest_undo.h b/ccan/failtest/failtest_undo.h index ff5e47b9..e42a992d 100644 --- a/ccan/failtest/failtest_undo.h +++ b/ccan/failtest/failtest_undo.h @@ -31,6 +31,10 @@ #define write(fd, buf, count) \ failtest_write((fd), (buf), (count), NULL, 0) +#undef mmap +#define mmap(addr, length, prot, flags, fd, offset) \ + failtest_mmap((addr), (length), (prot), (flags), (fd), (offset), NULL, 0) + #undef close #define close(fd) failtest_close(fd)