home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / s / rtu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  3.1 KB  |  101 lines

  1. /* Definitions file for GNU Emacs running on RTU 3.0, ucb universe.
  2.    Copyright (C) 1986 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /*
  23.  *    Define symbols to identify the version of Unix this is.
  24.  *    Define all the symbols that apply correctly.
  25.  */
  26.  
  27. #define BSD4_2
  28. #define BSD
  29. #define RTU
  30.  
  31. /* SYSTEM_TYPE should indicate the kind of system you are using.
  32.  It sets the Lisp variable system-type.  */
  33.  
  34. #define SYSTEM_TYPE "rtu"
  35.  
  36. /* Letter to use in finding device name of first pty,
  37.   if system supports pty's.  'a' means it is /dev/ptya0  */
  38.  
  39. #define FIRST_PTY_LETTER 'z'    /* i.e. no PTY_LETTERs */
  40.  
  41. /*
  42.  *    Define HAVE_PTYS if the system supports pty devices.
  43.  */
  44.  
  45. #define HAVE_PTYS
  46.  
  47. /* Define this macro if system defines a type `union wait'.  */
  48.  
  49. #define HAVE_UNION_WAIT
  50.  
  51. /* The system library bcopy() is broken in RTU.  For one thing, it expects
  52.    the length to be less than 64k. */
  53. #define BROKEN_BCOPY
  54.  
  55. /* If your system uses COFF (Common Object File Format) then define the
  56.    preprocessor symbol "COFF". */
  57.  
  58. #undef COFF
  59.  
  60. /* define MAIL_USE_FLOCK if the mailer uses flock
  61.    to interlock access to /usr/spool/mail/$USER.
  62.    The alternative is that a lock file named
  63.    /usr/spool/mail/$USER.lock.  */
  64.  
  65. #undef MAIL_USE_FLOCK
  66.  
  67. /* The symbol in the kernel where the load average is found
  68.    is named _avenrun.  */
  69.  
  70. #define LDAV_SYMBOL "_avenrun"
  71.  
  72. /* Special hacks needed to make Emacs run on this system.  */
  73.  
  74. /* On RTU systems (like USG) the system calls are interruptible by signals
  75.  that the user program has elected to catch.  Thus the system call
  76.  must be retried in these cases.  To handle this without massive
  77.  changes in the source code, we remap the standard system call names
  78.  to names for our own functions in sysdep.c that do the system call
  79.  with retries. */
  80.  
  81. #define INTERRUPTIBLE_OPEN
  82. #define INTERRUPTIBLE_IO
  83.  
  84. /* The "fsync" call on RTU versions 3.0 and 3.1 is badly broken!
  85.    This hack below isn't the best solution, but without it this
  86.    program will cause the whole system to hang!  !@#$#%$ Masscomp!  */
  87.  
  88. #define fsync(x) 0    /* "Comment out" fsync calls */
  89.  
  90. /* This is how to get the device name of the tty end of a pty.  */
  91. #define PTY_TTY_NAME_SPRINTF \
  92.             sprintf (pty_name, "/dev/ttyp%x", i);
  93.  
  94. /* This is how to get the device name of the control end of a pty.  */
  95. #define PTY_NAME_SPRINTF \
  96.     sprintf (pty_name, "/dev/pty%x", i);
  97.  
  98. /* Formerly "BSD_PGRPS" */
  99.  
  100. #define SIGIO_REQUIRES_SEPARATE_PROCESS_GROUP
  101.