home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / finger / part02 / ustruct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-03  |  2.5 KB  |  111 lines

  1. /*
  2.  * ustruct.h -- system includes for user struct
  3.  *
  4.  * Copyright (C) 1986, 1990  Philip L. Budne
  5.  *
  6.  * This file is part of "Phil's Finger Program".
  7.  *
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 1, or (at your option)
  11.  * any later version.
  12.  *
  13.  */
  14.  
  15. # define USTRUCT_RCSID "$Id: ustruct.h,v 3.0 90/07/06 13:12:14 budd Rel $"
  16.  
  17. # ifdef accel
  18. # define INCLUDE_HEADERS
  19. # endif /* accel defined */
  20.  
  21. # include <sys/param.h>            /* everyone!! */
  22.  
  23. # ifdef USG
  24.  
  25. # include <sys/types.h>
  26. # include <sys/time.h>            /* for proc.h */
  27. # include <sys/signal.h>        /* for MAXSIG */
  28.  
  29. # ifdef sgi
  30. # include <sys/syssgi.h>
  31. # endif /* sgi defined */
  32.  
  33. # ifdef SYSI86
  34. # include <sys/sysi86.h>
  35. # endif /* SYSI86 defined */
  36.  
  37. # ifndef AIX_RT                /* PC/RT AIX uses VRM segments */
  38.  
  39. # ifdef AIX3
  40.  
  41. # include <procinfo.h>
  42.  
  43. # else  /* AIX3 not defined */
  44.  
  45. # ifdef AUX                /* SVR2 */
  46.  
  47. # include <sys/mmu.h>
  48. # include <sys/page.h>
  49. # include <sys/seg.h>            /* for proc.h */
  50. # include <sys/region.h>        /* for proc.h */
  51.  
  52. # else  /* AUX not defined */
  53.  
  54. # ifndef AIX_PS2
  55.  
  56. /* SVR3: UmaxV, 386/ix */
  57.  
  58. # ifdef DIR_H
  59. # include <sys/dir.h>            /* for dirent u_dent */
  60. # else  /* DIR_H not defined */
  61. # include <sys/fs/s5dir.h>        /* for dirent u_dent */
  62. # endif /* DIR_H not defined */
  63.  
  64. # ifndef SYSI86
  65. /* for UmaxV, sgi */
  66. # include <sys/sbd.h>            /* for proc.h (p_ubptbl[])*/
  67. # endif /* SYSI86 not defined */
  68.  
  69. # include <sys/immu.h>            /* for region.h */
  70. # include <sys/region.h>        /* for preg_t p_region */
  71.  
  72. # endif /* AIX_PS2 not defined */
  73. # endif /* AUX not defined */
  74.  
  75. # endif /* AIX3 not defined */
  76.  
  77. # endif /* AIX_RT not defined */
  78.  
  79. # else  /* USG not defined */
  80.  
  81. /* BSD systems here */
  82.  
  83. # if defined(bsd4_3) || defined(ultrix)    /* ifdef NI_DENT?? */
  84. # include <sys/dir.h>            /* for direct ni_dent in namei.h */
  85. # endif /* defined(bsd4_3) || defined(ultrix) */
  86.  
  87. # if SunOS < 400
  88. # include <sys/vm.h>
  89. # ifndef accel
  90. # include <machine/pte.h>
  91. # endif /* accel not defined */
  92. # endif /* SunOS < 400 */
  93.  
  94. # if SunOS >= 410
  95. # include <sys/session.h>
  96. # endif /* SunOS >= 410 */
  97.  
  98. # endif /* USG not defined */
  99.  
  100. /* everyone!! */
  101. # include <sys/user.h>
  102. # include <sys/proc.h>            /* for p_pid */
  103. # undef u                /* sgi defines macro */
  104.  
  105. # ifndef SHORT_TTYP            /* SVR2, BSD, SOS3.x */
  106. # ifdef TTY_REQUIRES_IOCTL        /* 4.3, Ultrix */
  107. # include <sys/ioctl.h>
  108. # endif /* TTY_REQUIRES_IOCTL defined */
  109. # include <sys/tty.h>            /* for t_pgrp, t_{raw,out}q */
  110. # endif /* SHORT_TTYP not defined */
  111.