diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:50:24 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 21:14:02 +0100 |
| commit | ad541c67761b8aa6da1566802c347cac4018d0c2 (patch) | |
| tree | a9166fa9d349911d69a6948e53b05344dcc348a0 /src/ot_iovec.h | |
| parent | c679ff8a3b1418a5960cc49ba6458a0007df54fa (diff) | |
Move the build sources into src/
Diffstat (limited to 'src/ot_iovec.h')
| -rw-r--r-- | src/ot_iovec.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ot_iovec.h b/src/ot_iovec.h new file mode 100644 index 0000000..4a8abbb --- /dev/null +++ b/src/ot_iovec.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | ||
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. */ | ||
| 3 | |||
| 4 | #ifndef OT_IOVEC_H__ | ||
| 5 | #define OT_IOVEC_H__ | ||
| 6 | |||
| 7 | #include <sys/uio.h> | ||
| 8 | |||
| 9 | void *iovec_new_chunk(size_t *iovec_entries, struct iovec **iovector, size_t new_alloc); | ||
| 10 | void *iovec_append(size_t *iovec_entries, struct iovec **iovector, struct iovec *append_iovector); | ||
| 11 | void iovec_trim_last(size_t *iovec_entries, struct iovec **iovector, void *last_ptr); | ||
| 12 | void iovec_free(size_t *iovec_entries, struct iovec **iovector); | ||
| 13 | |||
| 14 | size_t iovec_length(const size_t *iovec_entries, const struct iovec **iovector); | ||
| 15 | |||
| 16 | void *iovec_next_chunk(size_t *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc); | ||
| 17 | |||
| 18 | #endif | ||
