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.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/include/skalibs/allreadwrite.h b/src/include/skalibs/allreadwrite.h
index d2e6bf7..9e42c1c 100644
--- a/src/include/skalibs/allreadwrite.h
+++ b/src/include/skalibs/allreadwrite.h
@@ -8,26 +8,24 @@
#include <skalibs/functypes.h>
#include <skalibs/siovec.h>
-extern int sanitize_read (int) ;
-extern int unsanitize_read (int) ;
+extern ssize_t sanitize_read (ssize_t) ;
+extern ssize_t unsanitize_read (ssize_t) ;
-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 size_t allreadwrite (iofunc_t_ref, int, char *, size_t) ;
+extern size_t allreadwritev (iovfunc_t_ref, int, struct iovec const *, unsigned int) ;
-extern int fd_read (int, char *, unsigned int) ;
-extern int fd_write (int, char const *, unsigned int) ;
+extern ssize_t fd_read (int, char *, size_t) ;
+extern ssize_t fd_write (int, char const *, size_t) ;
-extern int fd_recv (int, char *, unsigned int, unsigned int) ;
-extern int fd_send (int, char const *, unsigned int, unsigned int) ;
+extern ssize_t fd_recv (int, char *, size_t, unsigned int) ;
+extern ssize_t fd_send (int, char const *, size_t, 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 size_t allread (int, char *, size_t) ;
+extern size_t allwrite (int, char const *, size_t) ;
+extern size_t allreadv (int, struct iovec const *, unsigned int) ;
+extern size_t allwritev (int, struct iovec 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) ;
+extern ssize_t fd_readv (int, struct iovec const *, unsigned int) ;
+extern ssize_t fd_writev (int, struct iovec const *, unsigned int) ;
#endif