blob: 88003b43a0485ee8082bfecbe5e0280766cb17fd (
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_read (int fd, siovec_t const *v, unsigned int n)
{
struct iovec iov[n] ;
iovec_from_siovec(iov, v, n) ;
return fd_readv(fd, iov, n) ;
}
|