X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;fp=ccan%2Ffailtest%2Ffailtest.h;h=b304917bc6b0eece40039d6390f91c4020117811;hp=f473f14f110f7b8095daafbe2f10a6a8ec7e2897;hb=e43dc84fe91f64d8761aeda6338a1afbf701b7f5;hpb=3d99c9334fe3067c88772547b9c06acec21616ea diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index f473f14f..b304917b 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -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; };