-
Notifications
You must be signed in to change notification settings - Fork 0
/
ot_iovec.h
19 lines (12 loc) · 655 Bytes
/
ot_iovec.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This software was written by Dirk Engling <[email protected]>
It is considered beerware. Prost. Skol. Cheers or whatever.
$id$ */
#ifndef OT_IOVEC_H__
#define OT_IOVEC_H__
#include <sys/uio.h>
void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc );
void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr );
void iovec_free( int *iovec_entries, struct iovec **iovector );
size_t iovec_length( const int *iovec_entries, const struct iovec **iovector );
void *iovec_fix_increase_or_free( int *iovec_entries, struct iovec **iovector, void *last_ptr, size_t new_alloc );
#endif