summaryrefslogtreecommitdiff
path: root/src/include/skalibs/allreadwrite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/skalibs/allreadwrite.h')
-rw-r--r--src/include/skalibs/allreadwrite.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/skalibs/allreadwrite.h b/src/include/skalibs/allreadwrite.h
new file mode 100644
index 0000000..6b2a0cf
--- /dev/null
+++ b/src/include/skalibs/allreadwrite.h
@@ -0,0 +1,27 @@
+/* ISC license. */
+
+#ifndef ALLREADWRITE_H
+#define ALLREADWRITE_H
+
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <skalibs/functypes.h>
+
+extern int sanitize_read (int) ;
+extern int unsanitize_read (int) ;
+
+extern unsigned int allreadwrite (iofunc_t_ref, int, char *, unsigned int) ;
+
+extern int fd_read (int, char *, unsigned int) ;
+extern int fd_write (int, char const *, unsigned int) ;
+
+extern int fd_recv (int, char *, unsigned int, unsigned int) ;
+extern int fd_send (int, char const *, unsigned int, unsigned int) ;
+
+extern unsigned int allread (int, char *, unsigned int) ;
+extern unsigned int allwrite (int, char const *, unsigned int) ;
+
+extern int fd_readv (int, struct iovec const *, unsigned int) ;
+extern int fd_writev (int, struct iovec const *, unsigned int) ;
+
+#endif