1 /* Definitions file for GNU Emacs running on RTU 3.0, ucb universe.
2 Copyright (C) 1986 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
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)
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.
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, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
23 * Define symbols to identify the version of Unix this is.
24 * Define all the symbols that apply correctly.
31 /* SYSTEM_TYPE should indicate the kind of system you are using.
32 It sets the Lisp variable system-type. */
34 #define SYSTEM_TYPE "rtu"
36 /* NOMULTIPLEJOBS should be defined if your system's shell
37 does not have "job control" (the ability to stop a program,
38 run some other program, then continue the first one). */
40 #define NOMULTIPLEJOBS
42 /* Emacs can read input using SIGIO and buffering characters itself,
43 or using CBREAK mode and making C-g cause SIGINT.
44 The choice is controlled by the variable interrupt_input.
45 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
47 SIGIO can be used only on systems that implement it (4.2 and 4.3).
48 CBREAK mode has two disadvantages
49 1) At least in 4.2, it is impossible to handle the Meta key properly.
50 I hear that in system V this problem does not exist.
51 2) Control-G causes output to be discarded.
52 I do not know whether this can be fixed in system V.
54 Another method of doing input is planned but not implemented.
55 It would have Emacs fork off a separate process
56 to read the input and send it to the true Emacs process
60 #undef INTERRUPT_INPUT
62 /* Letter to use in finding device name of first pty,
63 if system supports pty's. 'a' means it is /dev/ptya0 */
65 #define FIRST_PTY_LETTER 'z' /* i.e. no PTY_LETTERs */
68 * Define HAVE_PTYS if the system supports pty devices.
73 /* Define this macro if system defines a type `union wait'. */
75 #define HAVE_UNION_WAIT
77 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
82 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
83 * The 4.2 opendir, etc., library functions.
86 #define NONSYSTEM_DIR_LIBRARY
88 /* Define this symbol if your system has the functions bcopy, etc. */
89 /* The system library bcopy() is broken in RTU. For one thing, it expects
90 the length to be less than 64k. */
93 /* subprocesses should be defined if you want to
94 have code for asynchronous subprocesses
95 (as used in M-x compile and M-x shell).
96 This is generally OS dependent, and not supported
97 under most USG systems. */
101 /* If your system uses COFF (Common Object File Format) then define the
102 preprocessor symbol "COFF". */
106 /* define MAIL_USE_FLOCK if the mailer uses flock
107 to interlock access to /usr/spool/mail/$USER.
108 The alternative is that a lock file named
109 /usr/spool/mail/$USER.lock. */
111 #undef MAIL_USE_FLOCK
113 /* Define CLASH_DETECTION if you want lock files to be written
114 so that Emacs can tell instantly when you try to modify
115 a file that someone else has modified in his Emacs. */
117 #undef CLASH_DETECTION
119 /* We use the Berkeley (and usg5.2.2) interface to nlist. */
123 /* The symbol in the kernel where the load average is found
124 is named _avenrun. */
126 #define LDAV_SYMBOL "_avenrun"
128 /* Special hacks needed to make Emacs run on this system. */
130 /* On RTU systems (like USG) the system calls are interruptible by signals
131 that the user program has elected to catch. Thus the system call
132 must be retried in these cases. To handle this without massive
133 changes in the source code, we remap the standard system call names
134 to names for our own functions in sysdep.c that do the system call
137 #define read sys_read
138 #define open sys_open
139 #define write sys_write
141 #define INTERRUPTIBLE_OPEN
142 #define INTERRUPTIBLE_IO
144 /* The "fsync" call on RTU versions 3.0 and 3.1 is badly broken!
145 This hack below isn't the best solution, but without it this
146 program will cause the whole system to hang! !@#$#%$ Masscomp! */
148 #define fsync(x) 0 /* "Comment out" fsync calls */
150 /* RTU has IPC instead of Unix-domain sockets. */
154 /* This is how to get the device name of the tty end of a pty. */
155 #define PTY_TTY_NAME_SPRINTF \
156 sprintf (pty_name, "/dev/ttyp%x", i);
158 /* This is how to get the device name of the control end of a pty. */
159 #define PTY_NAME_SPRINTF \
160 sprintf (pty_name, "/dev/pty%x", i);
162 /* (Assume) we do have vfork. */
166 /* Process groups work in the traditional BSD manner. */