home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Unix / sys⁄uio.h < prev    next >
Encoding:
Text File  |  1990-04-09  |  359 b   |  24 lines  |  [TEXT/????]

  1. /*    @(#)uio.h 1.1 86/07/07 SMI; from UCB 4.1 82/09/04    */
  2.  
  3. struct iovec {
  4.     caddr_t    iov_base;
  5.     int    iov_len;
  6. };
  7.  
  8. struct uio {
  9.     struct    iovec *uio_iov;
  10.     int    uio_iovcnt;
  11.     int    uio_offset;
  12.     short    uio_seg;
  13.     short    uio_fmode;
  14.     int    uio_resid;
  15. };
  16.  
  17. enum    uio_rw { UIO_READ, UIO_WRITE ,UIO_4BYTES=0x7fffffff};
  18.  
  19. /*
  20.  * segments
  21.  */
  22. #define UIOSEG_USER    0
  23. #define UIOSEG_KERNEL    1
  24.