diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-01 13:50:13 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-02-01 13:50:13 +0000 |
commit | cea441e894405c6d28e302ae4360e9f848b37797 (patch) | |
tree | 497feb0ad176f9e07e3950628cdd99afa3ae9d8b /src/libstddjb/fd_writesv.c | |
parent | ed49b72c0a31b6034026948851edf11cfa990fa0 (diff) | |
download | skalibs-cea441e894405c6d28e302ae4360e9f848b37797.tar.xz |
It will work better with the new files >.>
Diffstat (limited to 'src/libstddjb/fd_writesv.c')
-rw-r--r-- | src/libstddjb/fd_writesv.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <skalibs/allreadwrite.h> +#include <skalibs/siovec.h> + +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) ; +} |