summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_writev.c
blob: c54a20efbae4a4ff540451dc10960b017c41e472 (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_writev (int fd, struct iovec const *v, unsigned int vlen)
{
  register ssize_t r ;
  do r = writev(fd, v, vlen) ;
  while ((r == -1) && (errno == EINTR)) ;
  return r ;
}