]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest_proto.h
failtest: save and restore file state inside child (on-demand)
[ccan] / ccan / failtest / failtest_proto.h
index 89a1e77f6e2fd9e024d3ff1831d4bf898ecca847..c7e6b489844c0fae29e3be5a4abbcedf45c538f1 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under LGPL - see LICENSE file for details */
 #ifndef CCAN_FAILTEST_PROTO_H
 #define CCAN_FAILTEST_PROTO_H
 #include <stdlib.h>
@@ -20,6 +21,11 @@ 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);
+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 */