home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / ISP / bind.4.8.3.lzh / BIND483 / RES / uio.h < prev    next >
Text File  |  1994-02-01  |  2KB  |  66 lines

  1. /*    @(#)uio.h    6.1     (ULTRIX)        11/19/91    */
  2. /*    uio.h    6.1    83/07/29    */
  3. /************************************************************************
  4.  *                                    *
  5.  *            Copyright (c) 1985-1988 by        *
  6.  *        Digital Equipment Corporation, Maynard, MA        *
  7.  *            All rights reserved.                *
  8.  *                                    *
  9.  *   This software is furnished under a license and may be used and    *
  10.  *   copied  only  in accordance with the terms of such license and    *
  11.  *   with the  inclusion  of  the  above  copyright  notice.   This    *
  12.  *   software  or  any  other copies thereof may not be provided or    *
  13.  *   otherwise made available to any other person.  No title to and    *
  14.  *   ownership of the software is hereby transferred.            *
  15.  *                                    *
  16.  *   This software is  derived  from  software  received  from  the    *
  17.  *   University    of   California,   Berkeley,   and   from   Bell    *
  18.  *   Laboratories.  Use, duplication, or disclosure is  subject  to    *
  19.  *   restrictions  under  license  agreements  with  University  of    *
  20.  *   California and with AT&T.                        *
  21.  *                                    *
  22.  *   The information in this software is subject to change  without    *
  23.  *   notice  and should not be construed as a commitment by Digital    *
  24.  *   Equipment Corporation.                        *
  25.  *                                    *
  26.  *   Digital assumes no responsibility for the use  or  reliability    *
  27.  *   of its software on equipment which is not supplied by Digital.    *
  28.  *                                    *
  29.  ************************************************************************/
  30. /************************************************************************
  31.  *            Modification History                
  32.  *                                
  33.  *    02-11-88    Tim Burke
  34.  *    Added uio_flag field.  This field allows the file descriptor flags
  35.  *    to be passed into the read and write system calls.
  36.  *
  37.  ************************************************************************/
  38.  
  39. #ifndef _UIO_
  40. #define    _UIO_
  41. typedef char *  caddr_t;
  42.  
  43. struct iovec {
  44.     caddr_t    iov_base;
  45.     int    iov_len;
  46. };
  47.  
  48. struct uio {
  49.     struct    iovec *uio_iov;
  50.     int    uio_iovcnt;
  51.     int    uio_offset;
  52.     int    uio_segflg;
  53.     int    uio_resid;
  54.     int     uio_flag;
  55. };
  56.  
  57. enum    uio_rw { UIO_READ, UIO_WRITE };
  58.  
  59. /*
  60.  * Segment flag values (should be enum).
  61.  */
  62. #define UIO_USERSPACE    0        /* from user data space */
  63. #define UIO_SYSSPACE    1        /* from system space */
  64. #define UIO_USERISPACE    2        /* from user I space */
  65. #endif
  66.