2007-11-12 01:37:47 +00:00
|
|
|
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
|
2007-12-20 05:59:34 +00:00
|
|
|
It is considered beerware. Prost. Skol. Cheers or whatever.
|
2008-10-28 01:27:22 +00:00
|
|
|
|
2007-12-20 05:59:34 +00:00
|
|
|
$id$ */
|
2007-11-12 01:37:47 +00:00
|
|
|
|
2017-04-28 13:41:24 +00:00
|
|
|
#ifndef OT_IOVEC_H__
|
|
|
|
#define OT_IOVEC_H__
|
2007-11-12 01:37:47 +00:00
|
|
|
|
2008-11-28 22:21:10 +00:00
|
|
|
#include <sys/uio.h>
|
|
|
|
|
2024-04-14 22:39:02 +00:00
|
|
|
void *iovec_increase(int *iovec_entries, struct iovec **iovector, size_t new_alloc);
|
|
|
|
void *iovec_append(int *iovec_entries, struct iovec **iovector, struct iovec *append_iovector);
|
|
|
|
void iovec_fixlast(int *iovec_entries, struct iovec **iovector, void *last_ptr);
|
|
|
|
void iovec_free(int *iovec_entries, struct iovec **iovector);
|
2007-11-23 18:12:50 +00:00
|
|
|
|
2024-04-14 22:39:02 +00:00
|
|
|
size_t iovec_length(const int *iovec_entries, const struct iovec **iovector);
|
2007-11-12 01:37:47 +00:00
|
|
|
|
2024-04-14 22:39:02 +00:00
|
|
|
void *iovec_fix_increase_or_free(int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc);
|
2007-11-23 18:12:50 +00:00
|
|
|
|
2007-11-12 01:45:33 +00:00
|
|
|
#endif
|