diff options
Diffstat (limited to 'iov.h')
| -rw-r--r-- | iov.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -15,8 +15,9 @@ #ifndef IOVEC_H #define IOVEC_H -#include <unistd.h> +#include <stdbool.h> #include <string.h> +#include <unistd.h> #define IOV_OF_LVALUE(lval) \ (struct iovec){ .iov_base = &(lval), .iov_len = sizeof(lval) } @@ -24,9 +25,9 @@ size_t iov_skip_bytes(const struct iovec *iov, size_t n, size_t skip, size_t *offset); size_t iov_from_buf(const struct iovec *iov, size_t iov_cnt, - size_t offset, const void *buf, size_t bytes); + size_t offset, const void *buf, size_t bytes); size_t iov_to_buf(const struct iovec *iov, size_t iov_cnt, - size_t offset, void *buf, size_t bytes); + size_t offset, void *buf, size_t bytes); size_t iov_size(const struct iovec *iov, size_t iov_cnt); /* |
