X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;h=473f9e7950fa498e5d56a613353b049e69c82084;hb=5adceea6af51c93d3b6fc39849ff05340cd87253;hp=5c57efcfe71284eaaa24e93ad74c54e0eae6316b;hpb=5e1616698e06e2ce661122c6c9b04aae50271be8;p=ccan diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index 5c57efcf..473f9e79 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -69,10 +69,12 @@ struct open_call { struct pipe_call { int ret; int fds[2]; + bool closed[2]; }; struct read_call { ssize_t ret; + off_t off; int fd; void *buf; size_t count; @@ -83,6 +85,7 @@ struct write_call { int fd; const void *buf; size_t count; + off_t off; }; struct fcntl_call { @@ -119,6 +122,8 @@ struct failtest_call { bool fail; /* What we set errno to. */ int error; + /* How do we clean this up? */ + void (*cleanup)(void *u); /* The actual call data. */ union { struct calloc_call calloc;