]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest.h
failtest: add comment about limitations of untracked pointers.
[ccan] / ccan / failtest / failtest.h
index f473f14f110f7b8095daafbe2f10a6a8ec7e2897..b304917bc6b0eece40039d6390f91c4020117811 100644 (file)
@@ -47,6 +47,7 @@ enum failtest_call_type {
        FAILTEST_READ,
        FAILTEST_WRITE,
        FAILTEST_FCNTL,
+       FAILTEST_MMAP,
 };
 
 struct calloc_call {
@@ -110,6 +111,16 @@ struct fcntl_call {
        } arg;
 };
 
+struct mmap_call {
+       void *ret;
+       void *addr;
+       size_t length;
+       int prot;
+       int flags;
+       int fd;
+       off_t offset;
+};
+
 /**
  * struct failtest_call - description of a call redirected to failtest module
  * @type: the call type
@@ -151,6 +162,7 @@ struct failtest_call {
                struct read_call read;
                struct write_call write;
                struct fcntl_call fcntl;
+               struct mmap_call mmap;
        } u;
 };