1 /* This software was written by Dirk Engling <erdgeist@erdgeist.org> 2 It is considered beerware. Prost. Skol. Cheers or whatever. 3 4 $id$ */ 5 6 #ifndef OT_IOVEC_H__ 7 #define OT_IOVEC_H__ 8 9 #include <sys/uio.h> 10 11 void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ); 12 void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr ); 13 void iovec_free( int *iovec_entries, struct iovec **iovector ); 14 15 size_t iovec_length( int *iovec_entries, struct iovec **iovector ); 16 17 void *iovec_fix_increase_or_free( int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc ); 18 19 #endif 20