mirror of
https://review.haiku-os.org/haiku
synced 2025-02-12 08:39:18 +01:00
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
27 lines
698 B
C
27 lines
698 B
C
/* uio.h */
|
|
|
|
#ifndef NET_SYS_UIO_H
|
|
#define NET_SYS_UIO_H
|
|
|
|
enum uio_rw { UIO_READ, UIO_WRITE };
|
|
|
|
/* Segment flag values. */
|
|
enum uio_seg {
|
|
UIO_USERSPACE, /* from user data space */
|
|
UIO_SYSSPACE /* from system space */
|
|
};
|
|
|
|
struct uio {
|
|
struct iovec *uio_iov; /* pointer to array of iovecs */
|
|
int uio_iovcnt; /* number of iovecs in array */
|
|
off_t uio_offset; /* offset into file this uio corresponds to */
|
|
size_t uio_resid; /* residual i/o count */
|
|
enum uio_seg uio_segflg; /* see above */
|
|
enum uio_rw uio_rw; /* see above */
|
|
// struct proc *uio_procp; /* process if UIO_USERSPACE */
|
|
};
|
|
|
|
int uiomove(caddr_t cp, int n, struct uio *uio);
|
|
|
|
#endif /* NET_SYS_UIO_H */
|