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