xref: /haiku/headers/posix/sys/uio.h (revision 17889a8c70dbb3d59c1412f6431968753c767bab)
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 
12 typedef struct iovec {
13 	void  *iov_base;
14 	size_t iov_len;
15 } iovec;
16 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 ssize_t readv(int fd, const struct iovec *vector, int count);
23 ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, int count);
24 ssize_t writev(int fd, const struct iovec *vector, int count);
25 ssize_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