X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.h;h=ec238af0ab6f7d195de07df7e597c45c54a61145;hp=473f9e7950fa498e5d56a613353b049e69c82084;hb=c96ab569e73791eabe62e8d1c88b913e89eddc49;hpb=32aaf753429b178eb1a6e79576c005ac915b4447 diff --git a/ccan/failtest/failtest.h b/ccan/failtest/failtest.h index 473f9e79..ec238af0 100644 --- a/ccan/failtest/failtest.h +++ b/ccan/failtest/failtest.h @@ -36,6 +36,7 @@ enum failtest_call_type { FAILTEST_CALLOC, FAILTEST_REALLOC, FAILTEST_OPEN, + FAILTEST_CLOSE, FAILTEST_PIPE, FAILTEST_READ, FAILTEST_WRITE, @@ -66,6 +67,10 @@ struct open_call { mode_t mode; }; +struct close_call { + int fd; +}; + struct pipe_call { int ret; int fds[2]; @@ -130,6 +135,7 @@ struct failtest_call { struct malloc_call malloc; struct realloc_call realloc; struct open_call open; + struct close_call close; struct pipe_call pipe; struct read_call read; struct write_call write;