blob: e669f60b51b3f5fe6352ccd70b08cb417835c7cb (
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 <skalibs/allreadwrite.h>
#include <skalibs/siovec.h>
#include <skalibs/buffer.h>
int buffer_write (int fd, siovec_t const *v, unsigned int n)
{
struct iovec iov[n] ;
iovec_from_siovec(iov, v, n) ;
return fd_writev(fd, iov, n) ;
}
|