36 #include <sys/cdefs.h> 38 #include <sys/types.h> 40 #include <sys/_types.h> 44 #ifndef _SSIZE_T_DECLARED 45 typedef __ssize_t ssize_t;
46 #define _SSIZE_T_DECLARED 49 #ifndef _OFF_T_DECLARED 50 typedef __off_t off_t;
51 #define _OFF_T_DECLARED 56 enum uio_rw { UIO_READ, UIO_WRITE };
69 struct iovec *uio_iov;
73 enum uio_seg uio_segflg;
75 struct thread *uio_td;
89 #define UIO_MAXIOV 1024 94 struct uio *cloneuio(
struct uio *uiop);
95 int copyinfrom(
const void * __restrict src,
void * __restrict dst,
97 int copyiniov(
struct iovec *iovp, u_int iovcnt,
struct iovec **iov,
99 int copyinstrfrom(
const void * __restrict src,
void * __restrict dst,
100 size_t len,
size_t * __restrict copied,
int seg);
101 int copyinuio(
struct iovec *iovp, u_int iovcnt,
struct uio **uiop);
102 void uio_yield(
void);
103 int uiomove(
void *cp,
int n,
struct uio *uio);
104 int uiomove_frombuf(
void *buf,
int buflen,
struct uio *uio);
106 int uiomove_fromphys(
struct vm_page *ma[], vm_offset_t offset,
int n,
109 int uiomoveco(
void *cp,
int n,
struct uio *uio,
int disposable);
114 ssize_t
readv(
int,
const struct iovec *,
int);
115 ssize_t writev(
int,
const struct iovec *,
int);
117 ssize_t preadv(
int,
const struct iovec *,
int, off_t);
118 ssize_t pwritev(
int,
const struct iovec *,
int, off_t);
__BEGIN_DECLS ssize_t readv(int, const struct iovec *, int)
readv() - POSIX 1003.1 - Read a Vector
Definition: readv.c:32