summaryrefslogtreecommitdiffstats
path: root/src/iopoll.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/iopoll.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/iopoll.h b/src/iopoll.h
new file mode 100644
index 0000000..0177a4d
--- /dev/null
+++ b/src/iopoll.h
@@ -0,0 +1,9 @@
+#define IOPOLL_BROKEN_OUTPUT -2
+#define IOPOLL_ERROR -3
+
+int iopoll (int fdin, int fdout, bool block);
+bool iopoll_input_ok (int fdin);
+bool iopoll_output_ok (int fdout);
+
+bool fclose_wait (FILE *f);
+bool fwrite_wait (char const *buf, ssize_t size, FILE *f);