aboutsummaryrefslogtreecommitdiff
path: root/lib/io/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/io/io.h')
-rw-r--r--lib/io/io.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/io/io.h b/lib/io/io.h
index 06cc541..c373cd0 100644
--- a/lib/io/io.h
+++ b/lib/io/io.h
@@ -5,13 +5,20 @@
void wstd(const char *buf);
void rstd(char *buf, unsigned long count);
+void wf(unsigned int fd, char *buf);
void wstdf__(const char *buf, const void **args);
+void wff__(unsigned int fd, const char *buf, const void **args);
#define wstdf(buf, ...) { \
const void *__wstdf__args__[] = { __VA_ARGS__ }; \
wstdf__(buf, __wstdf__args__); \
}
+#define wff(fd, buf, ...) { \
+ const void *__wstdf__args__[] = { __VA_ARGS__ }; \
+ wff__(fd, buf, __wstdf__args__); \
+}
+
#endif