X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_proto.h;h=89a1e77f6e2fd9e024d3ff1831d4bf898ecca847;hp=89e1e1b6fd9e6c67d0ecca3cfac72f6f75992ef3;hb=c96ab569e73791eabe62e8d1c88b913e89eddc49;hpb=6c02fd599f5b3f925197c3161ee186a3305fc963 diff --git a/ccan/failtest/failtest_proto.h b/ccan/failtest/failtest_proto.h index 89e1e1b6..89a1e77f 100644 --- a/ccan/failtest/failtest_proto.h +++ b/ccan/failtest/failtest_proto.h @@ -8,6 +8,7 @@ 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); +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); @@ -19,6 +20,6 @@ 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_close(int fd, const char *file, unsigned line); int failtest_fcntl(int fd, const char *file, unsigned line, int cmd, ...); #endif /* CCAN_FAILTEST_PROTO_H */