xref: /haiku/headers/posix/sys/uio.h (revision e53f0019b57484c9fe0b24371d9c8520b52af57d)
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, size_t count);
23 ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, size_t count);
24 ssize_t writev(int fd, const struct iovec *vector, size_t count);
25 ssize_t writev_pos(int fd, off_t pos, const struct iovec *vec, size_t count);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif /* _SYS_UIO_H */
32