home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3297 / structxnode.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  1.3 KB  |  68 lines

  1. #ifndef STRUCT_XNODE_H
  2. #define STRUCT_XNODE_H
  3.  
  4. /* In an optimal system, this file would consist of solely: */
  5. /* #include <sys/inode.h> */
  6.  
  7. #include <sys/types.h>
  8. #ifndef ITIMER_REAL
  9. #include <sys/time.h>
  10. #endif
  11. #include <errno.h>
  12.  
  13. #include "confnfs.h"
  14. #include "confgnode.h"
  15. #include "confconvexfilegarbage.h"
  16. #ifdef CONVEXFILEGARBAGE /* This is almost embarassing. */
  17. #include <sys/param.h>
  18. #ifndef FHLOCAL
  19. #include <sys/dmonfh.h>
  20. #endif
  21. #define KERNEL
  22. #include <sys/cmap.h>
  23. #include <sys/dmon.h>
  24. #undef KERNEL
  25. #include <sys/object.h>
  26. #include <sync/queue.h>
  27. #include <sync/sema.h>
  28. #include <sys/ucred.h>
  29. #endif
  30. #ifdef GNODE
  31. #include <sys/gnode.h>
  32. #define Xnode gnode
  33. #define unp_Xnode unp_inode
  34. #define x_Xptr x_gptr
  35. #ifdef NFS
  36. #ifndef bool_t /*XXXX*/
  37. #include <rpc/types.h>
  38. #endif
  39. #include <sys/param.h> /* dorks */
  40. #ifndef NFS_RETRIES
  41. #include <nfs/nfs.h>
  42. #include <nfs/vnode.h>
  43. #endif
  44. #endif
  45. #else
  46. #ifndef NFS
  47. #define Xnode inode
  48. #define unp_Xnode unp_inode
  49. #define x_Xptr x_iptr
  50. #endif
  51. #ifdef NFS
  52. #include <sys/vnode.h>
  53. #define Xnode vnode
  54. #define unp_Xnode unp_vnode
  55. #define x_Xptr x_vptr
  56. #define DTYPE_INODE DTYPE_VNODE
  57. #define KERNEL /*XXX: dynix */
  58. #include <ufs/inode.h>
  59. #undef KERNEL
  60. #if defined(S_IFIFO) && defined(GET_FIFOS)
  61. #include </sys/specfs/snode.h>
  62. #endif
  63. #else
  64. #include <sys/inode.h>
  65. #endif
  66. #endif
  67. #endif
  68.