X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;h=473f9e7950fa498e5d56a613353b049e69c82084;hp=e8bf10ab5f6c46e056833610fd8c57b54bb1e3d5;hb=5adceea6af51c93d3b6fc39849ff05340cd87253;hpb=6c02fd599f5b3f925197c3161ee186a3305fc963 diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index e8bf10ab..473f9e79 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -69,14 +69,15 @@ 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; - off_t off; }; struct write_call { @@ -121,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;