X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;h=5c57efcfe71284eaaa24e93ad74c54e0eae6316b;hp=8aae82b352d007d81e94ba4c64104266107b2e92;hb=5e1616698e06e2ce661122c6c9b04aae50271be8;hpb=37e247dbcb57f4b2effd44b37b96dc679ee525d0 diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index 8aae82b3..5c57efcf 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 { @@ -83,6 +85,17 @@ struct write_call { size_t count; }; +struct fcntl_call { + int ret; + int fd; + int cmd; + union { + struct flock fl; + long l; + int i; + } arg; +}; + /** * struct failtest_call - description of a call redirected to failtest module * @type: the call type @@ -115,6 +128,7 @@ struct failtest_call { struct pipe_call pipe; struct read_call read; struct write_call write; + struct fcntl_call fcntl; } u; };