2002-07-12 13:14:15 +04:00
|
|
|
#ifndef _SYS_UIO_H
|
|
|
|
#define _SYS_UIO_H
|
2004-09-01 20:26:15 +04:00
|
|
|
/*
|
|
|
|
** Distributed under the terms of the Haiku License.
|
|
|
|
*/
|
|
|
|
|
2002-07-12 13:14:15 +04:00
|
|
|
|
2002-10-24 00:13:17 +04:00
|
|
|
#include <sys/types.h>
|
2002-07-12 13:14:15 +04:00
|
|
|
|
2004-09-01 20:26:15 +04:00
|
|
|
|
2002-07-12 13:14:15 +04:00
|
|
|
typedef struct iovec {
|
|
|
|
void *iov_base;
|
|
|
|
size_t iov_len;
|
|
|
|
} iovec;
|
|
|
|
|
|
|
|
|
2004-09-01 20:26:15 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-07-12 13:14:15 +04:00
|
|
|
|
|
|
|
ssize_t readv(int fd, const struct iovec *vector, size_t count);
|
|
|
|
ssize_t readv_pos(int fd, off_t pos, const struct iovec *vec, size_t count);
|
|
|
|
ssize_t writev(int fd, const struct iovec *vector, size_t count);
|
|
|
|
ssize_t writev_pos(int fd, off_t pos, const struct iovec *vec, size_t count);
|
|
|
|
|
2004-09-01 20:26:15 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2002-07-12 13:14:15 +04:00
|
|
|
#endif /* _SYS_UIO_H */
|