2006-08-08 12:33:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2002-2006, Haiku Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2002-07-12 09:14:15 +00:00
|
|
|
#ifndef _SYS_UIO_H
|
|
|
|
#define _SYS_UIO_H
|
2004-09-01 16:26:15 +00:00
|
|
|
|
2002-07-12 09:14:15 +00:00
|
|
|
|
2002-10-23 20:13:17 +00:00
|
|
|
#include <sys/types.h>
|
2002-07-12 09:14:15 +00:00
|
|
|
|
2004-09-01 16:26:15 +00:00
|
|
|
|
2002-07-12 09:14:15 +00:00
|
|
|
typedef struct iovec {
|
|
|
|
void *iov_base;
|
|
|
|
size_t iov_len;
|
|
|
|
} iovec;
|
|
|
|
|
|
|
|
|
2004-09-01 16:26:15 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-07-12 09:14:15 +00: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 16:26:15 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2002-07-12 09:14:15 +00:00
|
|
|
#endif /* _SYS_UIO_H */
|