X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_undo.h;h=3bb953dedd3f1e4433f377036c51995d0d539d3b;hp=c44dba47ac9ae611612bc41389c7d8e74cc26929;hb=a8722345053b7cd860499aa31fd6bb414c120cc8;hpb=f070b47bc6458e7a374e48c15336f329529e5fdd diff --git a/ccan/failtest/failtest_undo.h b/ccan/failtest/failtest_undo.h index c44dba47..3bb953de 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,14 @@ #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 lseek +#define lseek(fd, off, whence) \ + failtest_lseek((fd), (off), (whence), NULL, 0) + #undef close #define close(fd) failtest_close(fd)