X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_override.h;h=236441fcfc78e74c6dd632308d5bed7eaf4f5223;hp=90d1bfdc48a9f07064e323522b6687d25c24957e;hb=0d66a226c98d0c5b5bced64be3663e52ea6cfb9d;hpb=5e1616698e06e2ce661122c6c9b04aae50271be8 diff --git a/ccan/failtest/failtest_override.h b/ccan/failtest/failtest_override.h index 90d1bfdc..236441fc 100644 --- a/ccan/failtest/failtest_override.h +++ b/ccan/failtest/failtest_override.h @@ -24,8 +24,8 @@ #include #undef open -#define open(pathname, flags, ...) \ - failtest_open((pathname), (flags), __FILE__, __LINE__, __VA_ARGS__) +#define open(pathname, ...) \ + failtest_open((pathname), __FILE__, __LINE__, __VA_ARGS__) #undef pipe #define pipe(pipefd) \ @@ -39,6 +39,14 @@ #define write(fd, buf, count) \ failtest_write((fd), (buf), (count), __FILE__, __LINE__) +#undef pread +#define pread(fd, buf, count, off) \ + failtest_pread((fd), (buf), (count), (off), __FILE__, __LINE__) + +#undef pwrite +#define pwrite(fd, buf, count, off) \ + failtest_pwrite((fd), (buf), (count), (off), __FILE__, __LINE__) + #undef close #define close(fd) failtest_close(fd)