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, 1999, 2001, 2002, 2003, 2004, 2005, 2006,
4 2007, 2008 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
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 */
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.
62 * Define HAVE_PTYS if the system supports pty devices.
67 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
72 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
73 * The 4.2 opendir, etc., library functions.
76 /* #define NONSYSTEM_DIR_LIBRARY */
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.
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. */
94 /* If your system uses COFF (Common Object File Format) then define the
95 preprocessor symbol "COFF". */
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. */
104 /* #define MAIL_USE_FLOCK */
106 /* Say we have the SYSV style of interprocess communication. */
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. */
114 #define CLASH_DETECTION
116 /* The file containing the kernel's symbol table is called /hp-ux. */
118 #define KERNEL_FILE "/hp-ux"
120 /* The symbol in the kernel where the load average is found
121 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */
123 /* Special hacks needed to make Emacs run on this system. */
126 * Make the sigsetmask function go away. Don't know what the
127 * ramifications of this are, but doesn't seem possible to
128 * emulate it properly anyway at this point.
131 /* HPUX has sigsetmask */
132 /* #define sigsetmask(mask) / * Null expansion * / */
134 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
135 but they will run slower. */
137 /* HP-UX has _setjmp and _longjmp */
139 #define _setjmp setjmp
140 #define _longjmp longjmp
143 /* Use the system provided termcap(3) library */
146 /* The 48-bit versions are more winning for Emacs;
147 the ordinary ones don't give even 32 bits. */
148 #define random lrand48
149 #define srandom srand48
151 /* In hpux, the symbol SIGIO is defined, but the feature
152 doesn't work in the way Emacs needs it to. */
156 /* USG systems tend to put everything declared static
157 into the initialized data area, which becomes pure after dumping Emacs.
158 Foil this. Emacs carefully avoids static vars inside functions.
159 http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00368.html
160 As of at least HPUX 11.11 (2000), it seems this workaround is no
161 longer needed. Try uncommenting the following if you have problems
162 on older versions. */
164 /* This is unnecessary in HPUX versions 10.20, 11.0, 11.11, 11.23. */
168 /* Define extra libraries to load.
169 This should have -lBSD, but that library is said to make
170 `signal' fail to work. */
173 #define LIBS_SYSTEM -ln
178 /* Some additional system facilities exist. */
180 #define HAVE_PERROR /* Delete this line for version 6. */
182 /* The following maps shared exec file to demand loaded exec.
183 Don't do this as demand loaded exec is broken in hpux. */
187 /* Adjust a header field for the executable file about to be dumped. */
189 #define ADJUST_EXEC_HEADER \
190 hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ? \
191 NEWMAGIC : ohdr.a_magic);
195 /* Baud-rate values in tty status have nonstandard meanings. */
197 #define BAUD_CONVERT \
198 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \
199 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
201 /* This is how to get the device name of the tty end of a pty. */
202 #define PTY_TTY_NAME_SPRINTF \
203 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
205 /* This is how to get the device name of the control end of a pty. */
206 #define PTY_NAME_SPRINTF \
207 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
209 /* This triggers a conditional in xfaces.c. */
210 #define XOS_NEEDS_TIME_H
213 /* It's possible that HPUX 7 has sys/wait.h but it does not work right. */
214 #undef HAVE_SYS_WAIT_H
217 /* arch-tag: 75c1239f-fedb-4f64-8f86-7893e75699e8
218 (do not change this comment) */