X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;h=e8bf10ab5f6c46e056833610fd8c57b54bb1e3d5;hp=8aae82b352d007d81e94ba4c64104266107b2e92;hb=1605358b20327a8d384750cc2f840ed3a2ea224f;hpb=f0002cb9e4f6f403a25ad50252c06694439900f0 diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index 8aae82b3..e8bf10ab 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -2,6 +2,7 @@ #define CCAN_FAILTEST_H #include #include +#include #include /** @@ -38,6 +39,7 @@ enum failtest_call_type { FAILTEST_PIPE, FAILTEST_READ, FAILTEST_WRITE, + FAILTEST_FCNTL, }; struct calloc_call { @@ -74,6 +76,7 @@ struct read_call { int fd; void *buf; size_t count; + off_t off; }; struct write_call { @@ -81,6 +84,18 @@ struct write_call { int fd; const void *buf; size_t count; + off_t off; +}; + +struct fcntl_call { + int ret; + int fd; + int cmd; + union { + struct flock fl; + long l; + int i; + } arg; }; /** @@ -115,6 +130,7 @@ struct failtest_call { struct pipe_call pipe; struct read_call read; struct write_call write; + struct fcntl_call fcntl; } u; };