Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
1.8 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. uio.h
  5. Abstract:
  6. I/O structure definitions for compatibility with BSD.
  7. Author:
  8. Mike Massa (mikemas) Jan 31, 1992
  9. Revision History:
  10. Who When What
  11. -------- -------- ----------------------------------------------
  12. mikemas 01-31-92 created
  13. Notes:
  14. --*/
  15. /******************************************************************
  16. *
  17. * Spider BSD Compatibility
  18. *
  19. * Copyright 1990 Spider Systems Limited
  20. *
  21. * UIO.H
  22. *
  23. ******************************************************************/
  24. /*
  25. * /usr/projects/tcp/SCCS.rel3/rel/src/include/bsd/sys/0/s.uio.h
  26. * @(#)uio.h 5.3
  27. *
  28. * Last delta created 14:41:47 3/4/91
  29. * This file extracted 11:24:29 3/8/91
  30. *
  31. * Modifications:
  32. *
  33. * GSS 19 Jun 90 New File
  34. */
  35. /*
  36. * Copyright (c) 1982, 1986 Regents of the University of California.
  37. * All rights reserved. The Berkeley software License Agreement
  38. * specifies the terms and conditions for redistribution.
  39. *
  40. * @(#)uio.h 7.1 (Berkeley) 6/4/86
  41. */
  42. #ifndef _UIO_
  43. #define _UIO_
  44. typedef long daddr_t;
  45. typedef char FAR * caddr_t;
  46. struct iovec {
  47. caddr_t iov_base;
  48. int iov_len;
  49. };
  50. struct uio {
  51. struct iovec *uio_iov;
  52. int uio_iovcnt;
  53. int uio_offset;
  54. int uio_segflg;
  55. int uio_resid;
  56. };
  57. enum uio_rw { UIO_READ, UIO_WRITE };
  58. /*
  59. * Segment flag values (should be enum).
  60. */
  61. #define UIO_USERSPACE 0 /* from user data space */
  62. #define UIO_SYSSPACE 1 /* from system space */
  63. #define UIO_USERISPACE 2 /* from user I space */
  64. #endif