summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_readsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/fd_readsv.c')
-rw-r--r--src/libstddjb/fd_readsv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstddjb/fd_readsv.c b/src/libstddjb/fd_readsv.c
new file mode 100644
index 0000000..39efe19
--- /dev/null
+++ b/src/libstddjb/fd_readsv.c
@@ -0,0 +1,11 @@
+/* ISC license. */
+
+#include <skalibs/allreadwrite.h>
+#include <skalibs/siovec.h>
+
+int fd_readsv (int fd, siovec_t const *v, unsigned int vlen)
+{
+ struct iovec vv[vlen] ;
+ iovec_from_siovec(vv, v, vlen) ;
+ return fd_readv(fd, vv, vlen) ;
+}