]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest_undo.h
failtest: add comment about limitations of untracked pointers.
[ccan] / ccan / failtest / failtest_undo.h
index c44dba47ac9ae611612bc41389c7d8e74cc26929..e42a992d93e273494df04a840e965de3bc11a9bd 100644 (file)
@@ -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. */
 #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)