From ed49b72c0a31b6034026948851edf11cfa990fa0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 1 Feb 2015 12:06:52 +0000 Subject: Add allreadwritev and friends --- src/include/skalibs/allreadwrite.h | 6 ++++++ src/include/skalibs/functypes.h | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'src/include') 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 #include #include +#include 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 + 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 -- cgit v1.2.3