From cea441e894405c6d28e302ae4360e9f848b37797 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 1 Feb 2015 13:50:13 +0000 Subject: It will work better with the new files >.> --- src/libstddjb/fd_writesv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/libstddjb/fd_writesv.c (limited to 'src/libstddjb/fd_writesv.c') diff --git a/src/libstddjb/fd_writesv.c b/src/libstddjb/fd_writesv.c new file mode 100644 index 0000000..bd3c2c3 --- /dev/null +++ b/src/libstddjb/fd_writesv.c @@ -0,0 +1,11 @@ +/* ISC license. */ + +#include +#include + +int fd_writesv (int fd, siovec_t const *v, unsigned int vlen) +{ + struct iovec vv[vlen] ; + iovec_from_siovec(vv, v, vlen) ; + return fd_writev(fd, vv, vlen) ; +} -- cgit v1.2.3