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