X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_proto.h;h=3c2df1d31d21b12ea8fa99329aa08a5dada44bc0;hp=58337301ee223858ba903210ef586cd4c505c832;hb=7d1f0c73e4d321561abb74f82c8be97f10d69836;hpb=e8f0484b7808efe03dbb573563b336d533487e29 diff --git a/ccan/failtest/failtest_proto.h b/ccan/failtest/failtest_proto.h index 58337301..3c2df1d3 100644 --- a/ccan/failtest/failtest_proto.h +++ b/ccan/failtest/failtest_proto.h @@ -1,3 +1,4 @@ +/* Licensed under LGPL - see LICENSE file for details */ #ifndef CCAN_FAILTEST_PROTO_H #define CCAN_FAILTEST_PROTO_H #include @@ -20,6 +21,13 @@ 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); +void *failtest_mmap(void *addr, size_t length, int prot, int flags, + int fd, off_t offset, const char *file, unsigned line); +void *failtest_mmap_noloc(void *addr, size_t length, int prot, int flags, + int fd, off_t offset); +off_t failtest_lseek(int fd, off_t offset, int whence, + const char *file, unsigned line); +int failtest_close(int fd, const char *file, unsigned line); int failtest_fcntl(int fd, const char *file, unsigned line, int cmd, ...); +pid_t failtest_getpid(const char *file, unsigned line); #endif /* CCAN_FAILTEST_PROTO_H */