summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_writesv.c
blob: bd3c2c3f059aec90a610158af03c0d52ca364d12 (plain)
1
2
3
4
5
6
7
8
9
10
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) ;
}