blob: 154cca5452099760e9d1714da9186bdfdd1fa2c7 (
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/siovec.h>
void iovec_from_siovec (struct iovec *iov, siovec_t const *v, unsigned int n)
{
while (n--)
{
iov[n].iov_base = v[n].s ;
iov[n].iov_len = v[n].len ;
}
}
|