home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / x386 / x386OSD.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-04  |  2.5 KB  |  91 lines

  1. /*
  2.  * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software and its
  5.  * documentation for any purpose is hereby granted without fee, provided that
  6.  * the above copyright notice appear in all copies and that both that
  7.  * copyright notice and this permission notice appear in supporting
  8.  * documentation, and that the name of Thomas Roell not be used in
  9.  * advertising or publicity pertaining to distribution of the software without
  10.  * specific, written prior permission.  Thomas Roell makes no representations
  11.  * about the suitability of this software for any purpose.  It is provided
  12.  * "as is" without express or implied warranty.
  13.  *
  14.  * THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16.  * EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  18.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  19.  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20.  * PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  * $Header: /proj/X11/mit/server/ddx/x386/RCS/x386OSD.h,v 1.1 1991/06/02 22:36:17 root Exp $
  23.  */
  24.  
  25. #ifndef _X386OSD_H
  26. #define _X386OSD_H
  27.  
  28. #include <X11/Xos.h>
  29. #include <stdio.h>
  30. #include <ctype.h>
  31. #include <sys/ioctl.h>
  32. #undef NULL
  33. #include <sys/param.h>
  34. #include <signal.h>
  35. #include <termio.h>
  36. #include <errno.h>
  37. extern int errno;
  38.  
  39. #ifdef _NEED_SYSI86
  40. #include <sys/immu.h>
  41. #include <sys/region.h>
  42. #include <sys/proc.h>
  43. #include <sys/tss.h>
  44. #include <sys/sysi86.h>
  45. #include <sys/v86.h>
  46. #endif
  47.  
  48. #if defined(ATT) && !defined(i386)
  49. #define i386 /* not defined in ANSI C mode */
  50. #endif
  51. #include <sys/emap.h>
  52.  
  53. #ifndef SCO
  54. # include    <sys/at_ansi.h>
  55. # include    <sys/kd.h>
  56. # include    <sys/vt.h>
  57. #else /* SCO */
  58. # include    <sys/vtkd.h>
  59. # include    <sys/console.h>
  60. # include    <sys/keyboard.h>
  61. # define LED_CAP  0x01
  62. # define LED_NUM  0x02
  63. # define LED_SCR  0x04
  64. #endif /* SCO */
  65.  
  66. /* 
  67.  * Special hack for isc 2.2 posix compatible include files
  68.  */
  69. #if !defined(O_NDELAY) && defined(O_NONBLOCK)
  70. # define    O_NDELAY    O_NONBLOCK
  71. #endif
  72.  
  73. #ifndef VT_ACKACQ
  74. # define VT_ACKACQ 2  /* bed-time for bonzo ... */
  75. #endif
  76.  
  77. #if defined(ATT) || defined(DELL)
  78. # define XQUEUE
  79. # include <sys/xque.h>
  80. #endif
  81.  
  82. #ifndef MAXHOSTNAMELEN
  83. # define MAXHOSTNAMELEN 32
  84. #endif
  85.  
  86. #if !defined(SVR4) || defined(WGA_HACK)
  87. #define usleep(usec) syscall(3112, usec / 1000)
  88. #endif
  89.  
  90. #endif /* _X386OSD_H */
  91.