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

#include <sys/types.h>
#include <sys/uio.h>
#include <errno.h>
#include <skalibs/allreadwrite.h>

int fd_readv (int fd, struct iovec const *v, unsigned int vlen)
{
  register int r ;
  do r = readv(fd, v, vlen) ;
  while ((r == -1) && (errno == EINTR)) ;
  return r ;
}