summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/skalibs/allreadwrite.h6
-rw-r--r--src/include/skalibs/functypes.h8
2 files changed, 14 insertions, 0 deletions
diff --git a/src/include/skalibs/allreadwrite.h b/src/include/skalibs/allreadwrite.h
index 6b2a0cf..d2e6bf7 100644
--- a/src/include/skalibs/allreadwrite.h
+++ b/src/include/skalibs/allreadwrite.h
@@ -6,11 +6,13 @@
#include <sys/types.h>
#include <sys/uio.h>
#include <skalibs/functypes.h>
+#include <skalibs/siovec.h>
extern int sanitize_read (int) ;
extern int unsanitize_read (int) ;
extern unsigned int allreadwrite (iofunc_t_ref, int, char *, unsigned int) ;
+extern unsigned int allreadwritev (iovfunc_t_ref, int, siovec_t const *, unsigned int) ;
extern int fd_read (int, char *, unsigned int) ;
extern int fd_write (int, char const *, unsigned int) ;
@@ -20,8 +22,12 @@ 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 unsigned int allreadv (int, siovec_t const *, unsigned int) ;
+extern unsigned int allwritev (int, siovec_t const *, unsigned int) ;
extern int fd_readv (int, struct iovec const *, unsigned int) ;
+extern int fd_readsv (int, siovec_t const *, unsigned int) ;
extern int fd_writev (int, struct iovec const *, unsigned int) ;
+extern int fd_writesv (int, siovec_t const *, unsigned int) ;
#endif
diff --git a/src/include/skalibs/functypes.h b/src/include/skalibs/functypes.h
index 15cdbcc..d7094fc 100644
--- a/src/include/skalibs/functypes.h
+++ b/src/include/skalibs/functypes.h
@@ -3,6 +3,8 @@
#ifndef FUNCTYPES_H
#define FUNCTYPES_H
+#include <skalibs/siovec.h>
+
typedef int uintcmpfunc_t (unsigned int, unsigned int, void *) ;
typedef uintcmpfunc_t *uintcmpfunc_t_ref ;
@@ -27,7 +29,13 @@ typedef uinitfunc_t *uinitfunc_t_ref ;
typedef int iofunc_t (int, char *, unsigned int) ;
typedef iofunc_t *iofunc_t_ref ;
+typedef int iovfunc_t (int, siovec_t const *, unsigned int) ;
+typedef iovfunc_t *iovfunc_t_ref ;
+
typedef unsigned int alliofunc_t (int, char *, unsigned int) ;
typedef alliofunc_t *alliofunc_t_ref ;
+typedef unsigned int alliovfunc_t (int, siovec_t const *, unsigned int) ;
+typedef alliovfunc_t *alliovfunc_t_ref ;
+
#endif