]> code.delx.au - gnu-emacs/blob - src/s/hpux.h
Delete obsolete symbols.
[gnu-emacs] / src / s / hpux.h
1 /* Definitions file for GNU Emacs running on HPUX release 7.0.
2 Based on AT&T System V.2.
3 Copyright (C) 1985, 1986 Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20
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 USG /* System III, System V, etc */
28
29 #define USG5
30
31 #define HPUX
32
33 /* SYSTEM_TYPE should indicate the kind of system you are using.
34 It sets the Lisp variable system-type. */
35
36 #define SYSTEM_TYPE "hpux"
37
38 /* `nomultiplejobs' should be defined if your system's shell
39 does not have "job control" (the ability to stop a program,
40 run some other program, then continue the first one).
41
42 On hpux this depends on the precise kind of machine in use,
43 so the m- file defines this symbol if appropriate. */
44
45 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
46
47 /* #define INTERRUPT_INPUT */
48
49 /* Letter to use in finding device name of first pty,
50 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
51
52 #define FIRST_PTY_LETTER 'p'
53
54 /*
55 * Define HAVE_TERMIO if the system provides sysV-style ioctls
56 * for terminal control.
57 */
58
59 #define HAVE_TERMIO
60
61 /*
62 * Define HAVE_PTYS if the system supports pty devices.
63 */
64
65 #define HAVE_PTYS
66
67 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
68
69 #define HAVE_SOCKETS
70
71 /*
72 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
73 * The 4.2 opendir, etc., library functions.
74 */
75
76 /* #define NONSYSTEM_DIR_LIBRARY */
77
78 /* Define this symbol if your system has the functions bcopy, etc.
79 * s800 and later versions of s300 (s200) kernels have equivalents
80 * of the BSTRING functions of BSD. If your s200 kernel doesn't have
81 * em comment out this section.
82 */
83
84 #define BSTRING
85
86 /* subprocesses should be defined if you want to
87 have code for asynchronous subprocesses
88 (as used in M-x compile and M-x shell).
89 This is generally OS dependent, and not supported
90 under most USG systems. */
91
92 #define subprocesses
93
94 /* If your system uses COFF (Common Object File Format) then define the
95 preprocessor symbol "COFF". */
96
97 /* #define COFF */
98
99 /* define MAIL_USE_FLOCK if the mailer uses flock
100 to interlock access to /usr/spool/mail/$USER.
101 The alternative is that a lock file named
102 /usr/spool/mail/$USER.lock. */
103
104 /* #define MAIL_USE_FLOCK */
105
106 /* Say we have the SYSV style of interprocess communication. */
107
108 #define HAVE_SYSVIPC
109
110 /* Define CLASH_DETECTION if you want lock files to be written
111 so that Emacs can tell instantly when you try to modify
112 a file that someone else has modified in his Emacs. */
113
114 #define CLASH_DETECTION
115
116 /* Define SHORTNAMES if the C compiler can distinguish only
117 short names. It means that the stuff in ../shortnames
118 must be run to convert the long names to short ones.
119
120 Some USG systems support long names.
121 If yours is one, DO NOT change this file!
122 Do #undef SHORTNAMES in the m- file or in config.h. */
123
124 /* #define SHORTNAMES */
125
126 /* We use the Berkeley (and usg5.2.2) interface to nlist. */
127
128 #define NLIST_STRUCT
129
130 /* The file containing the kernel's symbol table is called /hp-ux. */
131
132 #define KERNEL_FILE "/hp-ux"
133
134 /* The symbol in the kernel where the load average is found
135 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */
136
137 /* Special hacks needed to make Emacs run on this system. */
138
139 /*
140 * Make the sigsetmask function go away. Don't know what the
141 * ramifications of this are, but doesn't seem possible to
142 * emulate it properly anyway at this point.
143 */
144
145 /* HPUX has sigsetmask */
146 /* #define sigsetmask(mask) / * Null expansion * / */
147
148 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
149 but they will run slower. */
150
151 /* HP-UX has _setjmp and _longjmp */
152 /*
153 #define _setjmp setjmp
154 #define _longjmp longjmp
155 */
156
157 /* On USG systems the system calls are interruptible by signals
158 that the user program has elected to catch. Thus the system call
159 must be retried in these cases. To handle this without massive
160 changes in the source code, we remap the standard system call names
161 to names for our own functions in sysdep.c that do the system call
162 with retries. */
163
164 #define read sys_read
165 #define open sys_open
166 #define write sys_write
167
168 #define INTERRUPTIBLE_OPEN
169 #define INTERRUPTIBLE_IO
170
171 /* Use the system provided termcap(3) library */
172 #define TERMINFO
173
174 /* The 48-bit versions are more winning for Emacs;
175 the ordinary ones don't give even 32 bits. */
176 #define random lrand48
177 #define srandom srand48
178
179 /* In hpux, the symbol SIGIO is defined, but the feature
180 doesn't work in the way Emacs needs it to.
181
182 Here we assume that signal.h is included before config.h
183 so that we can override it here. */
184
185 #undef SIGIO
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 /* Define extra libraries to load.
194 This should have -lBSD, but that library is said to make
195 `signal' fail to work. */
196
197 #ifdef HPUX_NET
198 #define LIBS_SYSTEM -ln
199 #else
200 #define LIBS_SYSTEM
201 #endif
202
203 /* Some additional system facilities exist. */
204
205 #define HAVE_VFORK
206 #define HAVE_PERROR /* Delete this line for version 6. */
207
208 /* The following maps shared exec file to demand loaded exec.
209 Don't do this as demand loaded exec is broken in hpux. */
210
211 #if 0
212
213 /* Adjust a header field for the executable file about to be dumped. */
214
215 #define ADJUST_EXEC_HEADER \
216 hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ? \
217 NEWMAGIC : ohdr.a_magic);
218
219 #endif
220
221 /* Baud-rate values in tty status have nonstandard meanings. */
222
223 #define BAUD_CONVERT \
224 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \
225 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
226
227 /* This is needed for HPUX version 6.2; it may not be needed for 6.2.1. */
228 #define SHORT_CAST_BUG
229
230 /* This is how to get the device name of the tty end of a pty. */
231 #define PTY_TTY_NAME_SPRINTF \
232 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
233
234 /* This is how to get the device name of the control end of a pty. */
235 #define PTY_NAME_SPRINTF \
236 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
237
238 /* This triggers a conditional in xfaces.c. */
239 #define XOS_NEEDS_TIME_H