1 #ifndef CCAN_FAILTEST_RESTORE_H
2 #define CCAN_FAILTEST_RESTORE_H
3 /* This file undoes the effect of failtest_override.h. */
6 #define calloc(nmemb, size) \
7 failtest_calloc((nmemb), (size), NULL, 0)
10 #define malloc(size) \
11 failtest_malloc((size), NULL, 0)
14 #define realloc(ptr, size) \
15 failtest_realloc((ptr), (size), NULL, 0)
18 #define open(pathname, flags, ...) \
19 failtest_open((pathname), (flags), NULL, 0, __VA_ARGS__)
22 #define pipe(pipefd) \
23 failtest_pipe((pipefd), NULL, 0)
26 #define read(fd, buf, count) \
27 failtest_read((fd), (buf), (count), NULL, 0)
30 #define write(fd, buf, count) \
31 failtest_write((fd), (buf), (count), NULL, 0)
34 #define close(fd) failtest_close(fd)
36 #endif /* CCAN_FAILTEST_RESTORE_H */