1/*
2 * Copyright 2002-2007, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _FSSH_SYS_UIO_H
6#define _FSSH_SYS_UIO_H
7
8
9#include "fssh_types.h"
10
11
12typedef struct fssh_iovec {
13	void		*iov_base;
14	fssh_size_t	iov_len;
15} fssh_iovec;
16
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22fssh_ssize_t fssh_readv(int fd, const struct fssh_iovec *vector,
23					int count);
24fssh_ssize_t fssh_readv_pos(int fd, fssh_off_t pos, const struct
25					fssh_iovec *vec, int count);
26fssh_ssize_t fssh_writev(int fd, const struct fssh_iovec *vector,
27					int count);
28fssh_ssize_t fssh_writev_pos(int fd, fssh_off_t pos,
29					const struct fssh_iovec *vec, int count);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* _FSSH_SYS_UIO_H */
36