X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Ffailtest%2Ffailtest_proto.h;h=58cdf5bd1d543cfd210e0c2b948bdc279d4331e7;hb=e43dc84fe91f64d8761aeda6338a1afbf701b7f5;hp=58337301ee223858ba903210ef586cd4c505c832;hpb=e8f0484b7808efe03dbb573563b336d533487e29;p=ccan diff --git a/ccan/failtest/failtest_proto.h b/ccan/failtest/failtest_proto.h index 58337301..58cdf5bd 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,9 @@ 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); +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 */