X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Ffailtest%2Ffailtest_undo.h;h=e42a992d93e273494df04a840e965de3bc11a9bd;hb=36d54ff66bdfdc316f666a98c69d2a27e2975fa2;hp=ff5e47b970730ee65559a1aff6be68712a175303;hpb=74257cee33ae3033f961d5f22a0313b8cb1b18d4;p=ccan 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)