2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _UIO_H_
|
|
|
|
#define _UIO_H_
|
|
|
|
|
|
|
|
/* For size_t */
|
|
|
|
#include <stddef.h>
|
|
|
|
/* For ssize_t */
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2000-12-06 00:08:48 +08:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
/*
|
|
|
|
* Define the uio buffers used for writev, readv.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct iovec {
|
|
|
|
caddr_t iov_base;
|
|
|
|
int iov_len;
|
|
|
|
};
|
|
|
|
|
2000-12-07 06:42:26 +08:00
|
|
|
extern ssize_t readv __P ((int filedes, const struct iovec *vector, int count));
|
|
|
|
extern ssize_t writev __P ((int filedes, const struct iovec *vector, int count));
|
2000-12-06 00:08:48 +08:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#endif /* _UIO_H_ */
|