1 /* ISC license. */ 2 3 #ifndef SIOVEC_H 4 #define SIOVEC_H 5 6 #include <sys/uio.h> 7 #include <skalibs/gccattributes.h> 8 9 extern size_t siovec_len (struct iovec const *, unsigned int) gccattr_pure ; 10 extern size_t siovec_gather (struct iovec const *, unsigned int, char *, size_t) ; 11 extern size_t siovec_scatter (struct iovec const *, unsigned int, char const *, size_t) ; 12 extern size_t siovec_deal (struct iovec const *, unsigned int, struct iovec const *, unsigned int) ; 13 extern size_t siovec_seek (struct iovec *, unsigned int, size_t) ; 14 extern unsigned int siovec_trunc (struct iovec *, unsigned int, size_t) ; 15 16 extern size_t siovec_bytechr (struct iovec const *, unsigned int, char) ; 17 extern size_t siovec_bytein (struct iovec const *, unsigned int, char const *, size_t) ; 18 19 #endif 20