#include <limits.h>
#include <sys/uio.h>
Go to the source code of this file.
|
ssize_t | pg_preadv (int fd, const struct iovec *iov, int iovcnt, off_t offset) |
|
ssize_t | pg_pwritev (int fd, const struct iovec *iov, int iovcnt, off_t offset) |
|
◆ PG_IOV_MAX
#define PG_IOV_MAX Min(IOV_MAX, 32) |
◆ pg_preadv()
ssize_t pg_preadv |
( |
int |
fd, |
|
|
const struct iovec * |
iov, |
|
|
int |
iovcnt, |
|
|
off_t |
offset |
|
) |
| |
Definition at line 22 of file preadv.c.
27 for (
int i = 0;
i < iovcnt; ++
i)
29 part =
pg_pread(
fd, iov[
i].iov_base, iov[
i].iov_len, offset);
39 if (part < iov[
i].iov_len)
static int fd(const char *x, int i)
References fd(), i, and pg_pread.
◆ pg_pwritev()
ssize_t pg_pwritev |
( |
int |
fd, |
|
|
const struct iovec * |
iov, |
|
|
int |
iovcnt, |
|
|
off_t |
offset |
|
) |
| |