home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: /ax/networking:include/sys/uio.h:networking 1.1 $
- * $Source: /ax/networking:include/sys/uio.h: $
- *
- * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
- *
- * $Log: uio.h,v $
- * Revision 1.1 95/01/11 10:20:08 kwelton
- * Initial revision
- *
- * Revision 1.3 88/06/17 20:22:19 beta
- * Acorn Unix initial beta version
- *
- */
- /* @(#)uio.h 1.4 87/06/25 3.2/4.3NFSSRC */
- /*
- * Copyright (c) 1982, 1986 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- *
- * @(#)uio.h 7.1 (Berkeley) 6/4/86
- */
-
- #ifndef _UIO_
- #define _UIO_
-
- struct iovec {
- caddr_t iov_base;
- int iov_len;
- };
-
- struct uio {
- struct iovec *uio_iov;
- int uio_iovcnt;
- off_t uio_offset;
-
- short uio_segflg;
- #define uio_seg uio_segflg /* obsolete */
-
- short uio_fmode;
- int uio_resid;
- };
-
- enum uio_rw { UIO_READ, UIO_WRITE };
-
- /*
- * Segment flag values (should be enum).
- */
- #define UIO_USERSPACE 0 /* from user data space */
- #define UIO_SYSSPACE 1 /* from system space */
- #define UIO_USERISPACE 2 /* from user I space */
- #endif
-
- /* EOF uio.h */
-