1 /* Licensed under LGPL - see LICENSE file for details */
2 #ifndef CCAN_FAILTEST_RESTORE_H
3 #define CCAN_FAILTEST_RESTORE_H
4 /* This file undoes the effect of failtest_override.h. */
7 #define calloc(nmemb, size) \
8 failtest_calloc((nmemb), (size), NULL, 0)
11 #define malloc(size) \
12 failtest_malloc((size), NULL, 0)
15 #define realloc(ptr, size) \
16 failtest_realloc((ptr), (size), NULL, 0)
19 #define open(pathname, ...) \
20 failtest_open((pathname), NULL, 0, __VA_ARGS__)
23 #define pipe(pipefd) \
24 failtest_pipe((pipefd), NULL, 0)
27 #define read(fd, buf, count) \
28 failtest_read((fd), (buf), (count), NULL, 0)
31 #define write(fd, buf, count) \
32 failtest_write((fd), (buf), (count), NULL, 0)
35 #define mmap(addr, length, prot, flags, fd, offset) \
36 failtest_mmap((addr), (length), (prot), (flags), (fd), (offset), NULL, 0)
39 #define lseek(fd, off, whence) \
40 failtest_lseek((fd), (off), (whence), NULL, 0)
43 #define close(fd) failtest_close(fd)
46 #define fcntl(fd, ...) \
47 failtest_fcntl((fd), NULL, 0, __VA_ARGS__)
49 #endif /* CCAN_FAILTEST_RESTORE_H */