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

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

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