|
|
1.1 root 1: /* Definitions file for GNU Emacs running on AT&T's System V Release 3
2: Copyright (C) 1987 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 1, 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:
21: /*
22: * Define symbols to identify the version of Unix this is.
23: * Define all the symbols that apply correctly.
24: */
25:
26: #define USG /* System III, System V, etc */
27:
28: #define USG5
29:
30: #define USG5_3
31:
32: /* SYSTEM_TYPE should indicate the kind of system you are using.
33: It sets the Lisp variable system-type. */
34:
35: #define SYSTEM_TYPE "usg-unix-v"
36:
37: /* nomultiplejobs should be defined if your system's shell
38: does not have "job control" (the ability to stop a program,
39: run some other program, then continue the first one). */
40:
41: #define NOMULTIPLEJOBS
42:
43: /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
44:
45: /* #define INTERRUPT_INPUT */
46:
47: /* Letter to use in finding device name of first pty,
48: if system supports pty's. 'p' means it is /dev/ptyp0 */
49:
50: #define FIRST_PTY_LETTER 'p'
51:
52: /*
53: * Define HAVE_TERMIO if the system provides sysV-style ioctls
54: * for terminal control.
55: */
56:
57: #define HAVE_TERMIO
58:
59: /*
60: * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
61: * Look in <sys/time.h> for a timeval structure.
62: */
63:
64: /* #define HAVE_TIMEVAL */
65:
66: /*
67: * Define HAVE_SELECT if the system supports the `select' system call.
68: */
69:
70: /* #define HAVE_SELECT */
71:
72: /*
73: * Define HAVE_PTYS if the system supports pty devices.
74: */
75:
76: /* Some versions of V.3 have this, but not all.
77: #define HAVE_PTYS
78: #define SYSV_PTYS */
79:
80: /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
81:
82: /* #define HAVE_SOCKETS */
83:
84: /*
85: * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
86: * The 4.2 opendir, etc., library functions.
87: */
88:
89: /* #define NONSYSTEM_DIR_LIBRARY */
90:
91: /*
92: * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
93: * library functions. Almost, but not quite the same as
94: * the 4.2 functions
95: */
96: #define SYSV_SYSTEM_DIR
97:
98: /* Define this symbol if your system has the functions bcopy, etc. */
99:
100: /* #define BSTRING */
101:
102: /* subprocesses should be defined if you want to
103: have code for asynchronous subprocesses
104: (as used in M-x compile and M-x shell).
105: This is supposed to work now on system V release 2. */
106:
107: #define subprocesses
108:
109: /* If your system uses COFF (Common Object File Format) then define the
110: preprocessor symbol "COFF". */
111:
112: #define COFF
113:
114: /* define MAIL_USE_FLOCK if the mailer uses flock
115: to interlock access to /usr/spool/mail/$USER.
116: The alternative is that a lock file named
117: /usr/spool/mail/$USER.lock. */
118:
119: /* #define MAIL_USE_FLOCK */
120:
121: /* Define CLASH_DETECTION if you want lock files to be written
122: so that Emacs can tell instantly when you try to modify
123: a file that someone else has modified in his Emacs. */
124:
125: /* #define CLASH_DETECTION */
126:
127: /* Define SHORTNAMES if the C compiler can distinguish only
128: short names. It means that the stuff in ../shortnames
129: must be run to convert the long names to short ones. */
130:
131: /* #define SHORTNAMES */
132:
133: /* We use the Berkeley (and usg5.2.2) interface to nlist. */
134:
135: #define NLIST_STRUCT
136:
137: /* The file containing the kernel's symbol table is called /unix. */
138:
139: #define KERNEL_FILE "/unix"
140:
141: /* The symbol in the kernel where the load average is found
142: is named avenrun. */
143:
144: #define LDAV_SYMBOL "avenrun"
145:
146: /* Define this if system V IPC is available. */
147:
148: #define HAVE_SYSVIPC
149:
150: /* Special hacks needed to make Emacs run on this system. */
151:
152: /*
153: * Make the sigsetmask function go away. Don't know what the
154: * ramifications of this are, but doesn't seem possible to
155: * emulate it properly anyway at this point.
156: */
157:
158: #define sigsetmask(mask) /* Null expansion */
159:
160: /* setjmp and longjmp can safely replace _setjmp and _longjmp,
161: but they will run slower. */
162:
163: #define _setjmp setjmp
164: #define _longjmp longjmp
165:
166: /* On USG systems the system calls are interruptable by signals
167: that the user program has elected to catch. Thus the system call
168: must be retried in these cases. To handle this without massive
169: changes in the source code, we remap the standard system call names
170: to names for our own functions in sysdep.c that do the system call
171: with retries. */
172:
173: #define read sys_read
174: #define write sys_write
175: #define open sys_open
176: #define close sys_close
177:
178: #define INTERRUPTABLE_OPEN
179: #define INTERRUPTABLE_CLOSE
180: #define INTERRUPTABLE_IO
181:
182: /* On USG systems these have different names */
183:
184: #define index strchr
185: #define rindex strrchr
186:
187: /* USG systems tend to put everything declared static
188: into the initialized data area, which becomes pure after dumping Emacs.
189: Foil this. Emacs carefully avoids static vars inside functions. */
190:
191: #define static
192:
193: /* Compiler bug bites on many systems when default ADDR_CORRECT is used. */
194:
195: #define ADDR_CORRECT(x) (x)
196:
197: /* Prevent -lg from being used for debugging. Not implemented? */
198:
199: #define LIBS_DEBUG
200:
201: /* Use terminfo instead of termcap. */
202:
203: #define TERMINFO
204:
205: /* Some variants have TIOCGETC, but the structures to go with it
206: are not declared. */
207:
208: #define BROKEN_TIOCGETC
209:
210: /* X needs to talk on the network, so search the network library. */
211:
212: #define LIBX10_SYSTEM -lnsl_s
213: #define LIBX11_SYSTEM -lnsl_s
214: /* [email protected] suggests the following is needed on version V.3.2.
215: Please tell [email protected] if you find that it is necessary. */
216: /* #define LIBX11_SYSTEM -lX11_s -lnls -lnsl_s -lpt -lc_s */
217:
218: /* The docs for system V/386 suggest v.3 has sigpause,
219: so let's give it a try. */
220: #define HAVE_SYSV_SIGPAUSE
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.