summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_readsv.c
blob: e4390df8ee78691d21965b3400ce6ddf5783c13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <sys/types.h>
#include <sys/uio.h>
#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) ;
}