1 /* Copyright (c) 2007 Patrick Mansfield <patmans@us.ibm.com> */ 2 #ifndef _SYS_UIO_H 3 #define _SYS_UIO_H 4 5 #include <sys/types.h> 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 /* 12 * Per POSIX 13 */ 14 15 struct iovec { 16 void *iov_base; 17 size_t iov_len; 18 }; 19 20 ssize_t readv(int, const struct iovec *, int); 21 ssize_t writev(int, const struct iovec *, int); 22 23 #ifdef __cplusplus 24 }; 25 #endif 26 27 #endif 28