failtest: fcntl handling
[ccan] / ccan / failtest / failtest_override.h
index dd328b508a5433911888affaa0f4e73227fdd67c..90d1bfdc48a9f07064e323522b6687d25c24957e 100644 (file)
@@ -42,6 +42,9 @@
 #undef close
 #define close(fd) failtest_close(fd)
 
+#undef fcntl
+#define fcntl(fd, ...) failtest_fcntl((fd), __FILE__, __LINE__, __VA_ARGS__)
+
 #include <ccan/failtest/failtest_proto.h>
 
 #endif /* CCAN_FAILTEST_OVERRIDE_H */