home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / uio < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.1 KB  |  55 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/uio.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/uio.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    uio.h,v $
  8.  * Revision 1.1  95/01/11  10:20:08  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:22:19  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)uio.h    1.4 87/06/25 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)uio.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. #ifndef _UIO_
  25. #define    _UIO_
  26.  
  27. struct iovec {
  28.     caddr_t    iov_base;
  29.     int    iov_len;
  30. };
  31.  
  32. struct uio {
  33.     struct    iovec *uio_iov;
  34.     int    uio_iovcnt;
  35.     off_t    uio_offset;
  36.  
  37.     short    uio_segflg;
  38. #define    uio_seg    uio_segflg        /* obsolete */
  39.  
  40.     short    uio_fmode;
  41.     int    uio_resid;
  42. };
  43.  
  44. enum    uio_rw { UIO_READ, UIO_WRITE };
  45.  
  46. /*
  47.  * Segment flag values (should be enum).
  48.  */
  49. #define UIO_USERSPACE    0        /* from user data space */
  50. #define UIO_SYSSPACE    1        /* from system space */
  51. #define UIO_USERISPACE    2        /* from user I space */
  52. #endif
  53.  
  54. /* EOF uio.h */
  55.