X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_proto.h;h=58337301ee223858ba903210ef586cd4c505c832;hp=cdb43eda8b20b22176a4999eb571da17e15f5540;hb=5adceea6af51c93d3b6fc39849ff05340cd87253;hpb=f0002cb9e4f6f403a25ad50252c06694439900f0 diff --git a/ccan/failtest/failtest_proto.h b/ccan/failtest/failtest_proto.h index cdb43eda..58337301 100644 --- a/ccan/failtest/failtest_proto.h +++ b/ccan/failtest/failtest_proto.h @@ -8,13 +8,18 @@ void *failtest_calloc(size_t nmemb, size_t size, void *failtest_malloc(size_t size, const char *file, unsigned line); void *failtest_realloc(void *ptr, size_t size, const char *file, unsigned line); -int failtest_open(const char *pathname, int flags, +void failtest_free(void *ptr); +int failtest_open(const char *pathname, const char *file, unsigned line, ...); int failtest_pipe(int pipefd[2], const char *file, unsigned line); ssize_t failtest_read(int fd, void *buf, size_t count, const char *file, unsigned line); ssize_t failtest_write(int fd, const void *buf, size_t count, const char *file, unsigned line); +ssize_t failtest_pread(int fd, void *buf, size_t count, off_t offset, + const char *file, unsigned line); +ssize_t failtest_pwrite(int fd, const void *buf, size_t count, off_t offset, + const char *file, unsigned line); int failtest_close(int fd); - +int failtest_fcntl(int fd, const char *file, unsigned line, int cmd, ...); #endif /* CCAN_FAILTEST_PROTO_H */