X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_undo.h;h=e42a992d93e273494df04a840e965de3bc11a9bd;hp=c44dba47ac9ae611612bc41389c7d8e74cc26929;hb=4f2f6f1eba6cc2bcb0683c50269d1dbbe73ed167;hpb=f070b47bc6458e7a374e48c15336f329529e5fdd diff --git a/ccan/failtest/failtest_undo.h b/ccan/failtest/failtest_undo.h index c44dba47..e42a992d 100644 --- a/ccan/failtest/failtest_undo.h +++ b/ccan/failtest/failtest_undo.h @@ -1,3 +1,4 @@ +/* Licensed under LGPL - see LICENSE file for details */ #ifndef CCAN_FAILTEST_RESTORE_H #define CCAN_FAILTEST_RESTORE_H /* This file undoes the effect of failtest_override.h. */ @@ -30,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)