]> git.ozlabs.org Git - ccan/blobdiff - ccan/failtest/failtest.h
failtest: record close events
[ccan] / ccan / failtest / failtest.h
index 473f9e7950fa498e5d56a613353b049e69c82084..ec238af0ab6f7d195de07df7e597c45c54a61145 100644 (file)
@@ -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;