1 #ifndef _SYS_UIO_H 2 #define _SYS_UIO_H 3 /* 4 ** Distributed under the terms of the Haiku License. 5 */ 6 7 8 #include <sys/types.h> 9 10 11 typedef struct iovec { 12 void *iov_base; 13 size_t iov_len; 14 } iovec; 15 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 ssize_t readv(int fd, const struct iovec *vector, size_t count); 22 ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, size_t count); 23 ssize_t writev(int fd, const struct iovec *vector, size_t count); 24 ssize_t writev_pos(int fd, off_t pos, const struct iovec *vec, size_t count); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* _SYS_UIO_H */ 31