comint-password-prompt-regexp: New variable.
[emacs.git] / src / s / hpux.h
blob58fdf6ff11ad14dbbead919d7266a7f5828ee533
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.
5 This file is part of GNU Emacs.
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.
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.
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. */
23 * Define symbols to identify the version of Unix this is.
24 * Define all the symbols that apply correctly.
27 #define USG /* System III, System V, etc */
29 #define USG5
31 #define HPUX
33 /* SYSTEM_TYPE should indicate the kind of system you are using.
34 It sets the Lisp variable system-type. */
36 #define SYSTEM_TYPE "hpux"
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).
42 On hpux this depends on the precise kind of machine in use,
43 so the m- file defines this symbol if appropriate. */
45 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
47 /* #define INTERRUPT_INPUT */
49 /* Letter to use in finding device name of first pty,
50 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
52 #define FIRST_PTY_LETTER 'p'
55 * Define HAVE_TERMIO if the system provides sysV-style ioctls
56 * for terminal control.
59 #define HAVE_TERMIO
61 /* Says to include time.h, and not include sys/time.h. */
63 #define NEED_TIME_H
66 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
67 * Look in <sys/time.h> for a timeval structure.
70 #define HAVE_TIMEVAL
72 /* With HAVE_TIMEVAL define, Emacs expects to use `utimes'.
73 But HPUX does not have one. */
75 #define MISSING_UTIMES
78 * Define HAVE_SELECT if the system supports the `select' system call.
81 #define HAVE_SELECT
84 * Define HAVE_PTYS if the system supports pty devices.
87 #define HAVE_PTYS
89 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
91 #define HAVE_SOCKETS
94 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
95 * The 4.2 opendir, etc., library functions.
98 /* #define NONSYSTEM_DIR_LIBRARY */
100 /* Define this symbol if your system has the functions bcopy, etc.
101 * s800 and later versions of s300 (s200) kernels have equivalents
102 * of the BSTRING functions of BSD. If your s200 kernel doesn't have
103 * em comment out this section.
106 #define BSTRING
108 /* subprocesses should be defined if you want to
109 have code for asynchronous subprocesses
110 (as used in M-x compile and M-x shell).
111 This is generally OS dependent, and not supported
112 under most USG systems. */
114 #define subprocesses
116 /* If your system uses COFF (Common Object File Format) then define the
117 preprocessor symbol "COFF". */
119 /* #define COFF */
121 /* define MAIL_USE_FLOCK if the mailer uses flock
122 to interlock access to /usr/spool/mail/$USER.
123 The alternative is that a lock file named
124 /usr/spool/mail/$USER.lock. */
126 /* #define MAIL_USE_FLOCK */
128 /* Say we have the SYSV style of interprocess communication. */
130 #define HAVE_SYSVIPC
132 /* Define CLASH_DETECTION if you want lock files to be written
133 so that Emacs can tell instantly when you try to modify
134 a file that someone else has modified in his Emacs. */
136 #define CLASH_DETECTION
138 /* Define SHORTNAMES if the C compiler can distinguish only
139 short names. It means that the stuff in ../shortnames
140 must be run to convert the long names to short ones.
142 Some USG systems support long names.
143 If yours is one, DO NOT change this file!
144 Do #undef SHORTNAMES in the m- file or in config.h. */
146 /* #define SHORTNAMES */
148 /* We use the Berkeley (and usg5.2.2) interface to nlist. */
150 #define NLIST_STRUCT
152 /* The file containing the kernel's symbol table is called /hp-ux. */
154 #define KERNEL_FILE "/hp-ux"
156 /* The symbol in the kernel where the load average is found
157 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */
159 /* Special hacks needed to make Emacs run on this system. */
162 * Make the sigsetmask function go away. Don't know what the
163 * ramifications of this are, but doesn't seem possible to
164 * emulate it properly anyway at this point.
167 /* HPUX has sigsetmask */
168 /* #define sigsetmask(mask) / * Null expansion * / */
170 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
171 but they will run slower. */
173 /* HP-UX has _setjmp and _longjmp */
175 #define _setjmp setjmp
176 #define _longjmp longjmp
179 /* On USG systems the system calls are interruptible by signals
180 that the user program has elected to catch. Thus the system call
181 must be retried in these cases. To handle this without massive
182 changes in the source code, we remap the standard system call names
183 to names for our own functions in sysdep.c that do the system call
184 with retries. */
186 #define read sys_read
187 #define open sys_open
188 #define write sys_write
190 #define INTERRUPTIBLE_OPEN
191 #define INTERRUPTIBLE_IO
193 /* Use the system provided termcap(3) library */
194 #define TERMINFO
196 #if 0
197 /* The 48-bit versions are more winning for Emacs. */
199 #define rand lrand48
200 #define srand srand48
201 #endif
203 /* In hpux, the symbol SIGIO is defined, but the feature
204 doesn't work in the way Emacs needs it to.
206 Here we assume that signal.h is included before config.h
207 so that we can override it here. */
209 #undef SIGIO
211 /* USG systems tend to put everything declared static
212 into the initialized data area, which becomes pure after dumping Emacs.
213 Foil this. Emacs carefully avoids static vars inside functions. */
215 #define static
217 /* Define extra libraries to load.
218 This should have -lBSD, but that library is said to make
219 `signal' fail to work. */
221 #ifdef HPUX_NET
222 #define LIBS_SYSTEM -ln
223 #else
224 #define LIBS_SYSTEM
225 #endif
227 /* Some additional system facilities exist. */
229 #define HAVE_VFORK
230 #define HAVE_PERROR /* Delete this line for version 6. */
232 /* The following maps shared exec file to demand loaded exec.
233 Don't do this as demand loaded exec is broken in hpux. */
235 #if 0
237 /* Adjust a header field for the executable file about to be dumped. */
239 #define ADJUST_EXEC_HEADER \
240 hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ? \
241 NEWMAGIC : ohdr.a_magic);
243 #endif
245 /* Baud-rate values in tty status have nonstandard meanings. */
247 #define BAUD_CONVERT \
248 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \
249 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
251 /* This is needed for HPUX version 6.2; it may not be needed for 6.2.1. */
252 #define SHORT_CAST_BUG
254 /* This is how to get the device name of the tty end of a pty. */
255 #define PTY_TTY_NAME_SPRINTF \
256 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
258 /* This is how to get the device name of the control end of a pty. */
259 #define PTY_NAME_SPRINTF \
260 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
262 /* This triggers a conditional in xfaces.c. */
263 #define XOS_NEEDS_TIME_H