summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_readv.c
blob: 11dda66c7e62bc7425df7e04a60b4cb0b7c06333 (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>

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