X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest_proto.h;h=3c2df1d31d21b12ea8fa99329aa08a5dada44bc0;hp=89a1e77f6e2fd9e024d3ff1831d4bf898ecca847;hb=3c65e082a9547992222a9f379f2484cceaaedfa8;hpb=c96ab569e73791eabe62e8d1c88b913e89eddc49 diff --git a/ccan/failtest/failtest_proto.h b/ccan/failtest/failtest_proto.h index 89a1e77f..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); +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 */