Mercurial > emacs
annotate src/s/hpux.h @ 62122:96701ef6c56d
(webjump): Replace `assoc-ignore-case' by `assoc-string'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 06 May 2005 19:26:33 +0000 |
parents | 695cf19ef79e |
children | 23a17af379b1 375f2633d815 |
rev | line source |
---|---|
456 | 1 /* Definitions file for GNU Emacs running on HPUX release 7.0. |
2 Based on AT&T System V.2. | |
26090 | 3 Copyright (C) 1985, 1986, 1999 Free Software Foundation, Inc. |
456 | 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 | |
3699 | 9 the Free Software Foundation; either version 2, or (at your option) |
456 | 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 | |
14186
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
8892
diff
changeset
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
8892
diff
changeset
|
20 Boston, MA 02111-1307, USA. */ |
456 | 21 |
22 | |
23 /* | |
24 * Define symbols to identify the version of Unix this is. | |
25 * Define all the symbols that apply correctly. | |
26 */ | |
27 | |
28 #define USG /* System III, System V, etc */ | |
29 | |
30 #define USG5 | |
31 | |
32 #define HPUX | |
33 | |
34 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
35 It sets the Lisp variable system-type. */ | |
36 | |
37 #define SYSTEM_TYPE "hpux" | |
38 | |
39 /* `nomultiplejobs' should be defined if your system's shell | |
40 does not have "job control" (the ability to stop a program, | |
41 run some other program, then continue the first one). | |
42 | |
43 On hpux this depends on the precise kind of machine in use, | |
44 so the m- file defines this symbol if appropriate. */ | |
45 | |
46 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */ | |
47 | |
48 /* #define INTERRUPT_INPUT */ | |
49 | |
50 /* Letter to use in finding device name of first pty, | |
51 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ | |
52 | |
53 #define FIRST_PTY_LETTER 'p' | |
54 | |
55 /* | |
56 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
57 * for terminal control. | |
58 */ | |
59 | |
60 #define HAVE_TERMIO | |
61 | |
62 /* | |
63 * Define HAVE_PTYS if the system supports pty devices. | |
64 */ | |
65 | |
66 #define HAVE_PTYS | |
67 | |
68 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | |
69 | |
70 #define HAVE_SOCKETS | |
71 | |
72 /* | |
73 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
74 * The 4.2 opendir, etc., library functions. | |
75 */ | |
76 | |
77 /* #define NONSYSTEM_DIR_LIBRARY */ | |
78 | |
79 /* Define this symbol if your system has the functions bcopy, etc. | |
3591
507f64624555
Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents:
3435
diff
changeset
|
80 * s800 and later versions of s300 (s200) kernels have equivalents |
456 | 81 * of the BSTRING functions of BSD. If your s200 kernel doesn't have |
82 * em comment out this section. | |
83 */ | |
84 | |
85 #define BSTRING | |
86 | |
87 /* subprocesses should be defined if you want to | |
88 have code for asynchronous subprocesses | |
89 (as used in M-x compile and M-x shell). | |
90 This is generally OS dependent, and not supported | |
91 under most USG systems. */ | |
92 | |
93 #define subprocesses | |
94 | |
95 /* If your system uses COFF (Common Object File Format) then define the | |
96 preprocessor symbol "COFF". */ | |
97 | |
98 /* #define COFF */ | |
99 | |
100 /* define MAIL_USE_FLOCK if the mailer uses flock | |
101 to interlock access to /usr/spool/mail/$USER. | |
102 The alternative is that a lock file named | |
103 /usr/spool/mail/$USER.lock. */ | |
104 | |
105 /* #define MAIL_USE_FLOCK */ | |
106 | |
107 /* Say we have the SYSV style of interprocess communication. */ | |
108 | |
109 #define HAVE_SYSVIPC | |
110 | |
111 /* Define CLASH_DETECTION if you want lock files to be written | |
112 so that Emacs can tell instantly when you try to modify | |
113 a file that someone else has modified in his Emacs. */ | |
114 | |
545 | 115 #define CLASH_DETECTION |
456 | 116 |
117 /* Define SHORTNAMES if the C compiler can distinguish only | |
118 short names. It means that the stuff in ../shortnames | |
119 must be run to convert the long names to short ones. | |
120 | |
121 Some USG systems support long names. | |
122 If yours is one, DO NOT change this file! | |
123 Do #undef SHORTNAMES in the m- file or in config.h. */ | |
124 | |
125 /* #define SHORTNAMES */ | |
126 | |
127 /* The file containing the kernel's symbol table is called /hp-ux. */ | |
128 | |
129 #define KERNEL_FILE "/hp-ux" | |
130 | |
131 /* The symbol in the kernel where the load average is found | |
132 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */ | |
133 | |
134 /* Special hacks needed to make Emacs run on this system. */ | |
135 | |
136 /* | |
137 * Make the sigsetmask function go away. Don't know what the | |
138 * ramifications of this are, but doesn't seem possible to | |
139 * emulate it properly anyway at this point. | |
140 */ | |
141 | |
142 /* HPUX has sigsetmask */ | |
143 /* #define sigsetmask(mask) / * Null expansion * / */ | |
144 | |
145 /* setjmp and longjmp can safely replace _setjmp and _longjmp, | |
146 but they will run slower. */ | |
147 | |
148 /* HP-UX has _setjmp and _longjmp */ | |
149 /* | |
150 #define _setjmp setjmp | |
151 #define _longjmp longjmp | |
152 */ | |
153 | |
154 /* Use the system provided termcap(3) library */ | |
155 #define TERMINFO | |
156 | |
8097
f18272ebe3e6
(random, srandom): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
157 /* The 48-bit versions are more winning for Emacs; |
f18272ebe3e6
(random, srandom): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
158 the ordinary ones don't give even 32 bits. */ |
f18272ebe3e6
(random, srandom): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
159 #define random lrand48 |
f18272ebe3e6
(random, srandom): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3699
diff
changeset
|
160 #define srandom srand48 |
456 | 161 |
162 /* In hpux, the symbol SIGIO is defined, but the feature | |
26090 | 163 doesn't work in the way Emacs needs it to. */ |
456 | 164 |
26090 | 165 #define BROKEN_SIGIO |
456 | 166 |
167 /* USG systems tend to put everything declared static | |
168 into the initialized data area, which becomes pure after dumping Emacs. | |
169 Foil this. Emacs carefully avoids static vars inside functions. */ | |
170 | |
171 #define static | |
172 | |
173 /* Define extra libraries to load. | |
174 This should have -lBSD, but that library is said to make | |
175 `signal' fail to work. */ | |
176 | |
177 #ifdef HPUX_NET | |
178 #define LIBS_SYSTEM -ln | |
179 #else | |
180 #define LIBS_SYSTEM | |
181 #endif | |
182 | |
183 /* Some additional system facilities exist. */ | |
184 | |
185 #define HAVE_PERROR /* Delete this line for version 6. */ | |
186 | |
187 /* The following maps shared exec file to demand loaded exec. | |
188 Don't do this as demand loaded exec is broken in hpux. */ | |
189 | |
190 #if 0 | |
191 | |
192 /* Adjust a header field for the executable file about to be dumped. */ | |
193 | |
194 #define ADJUST_EXEC_HEADER \ | |
195 hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ? \ | |
196 NEWMAGIC : ohdr.a_magic); | |
197 | |
198 #endif | |
199 | |
200 /* Baud-rate values in tty status have nonstandard meanings. */ | |
201 | |
202 #define BAUD_CONVERT \ | |
203 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \ | |
204 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 } | |
205 | |
206 /* This is needed for HPUX version 6.2; it may not be needed for 6.2.1. */ | |
207 #define SHORT_CAST_BUG | |
208 | |
209 /* This is how to get the device name of the tty end of a pty. */ | |
210 #define PTY_TTY_NAME_SPRINTF \ | |
621 | 211 sprintf (pty_name, "/dev/pty/tty%c%x", c, i); |
456 | 212 |
213 /* This is how to get the device name of the control end of a pty. */ | |
214 #define PTY_NAME_SPRINTF \ | |
621 | 215 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i); |
3435
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3126
diff
changeset
|
216 |
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3126
diff
changeset
|
217 /* This triggers a conditional in xfaces.c. */ |
7930bf123cb7
(XOS_NEEDS_TIME_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3126
diff
changeset
|
218 #define XOS_NEEDS_TIME_H |
41184
556de690adf1
(HAVE_SYS_WAIT_H): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents:
28594
diff
changeset
|
219 |
46719
9fee2ba2f93d
(HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
Richard M. Stallman <rms@gnu.org>
parents:
41186
diff
changeset
|
220 #ifndef HPUX8 |
41186 | 221 /* It's possible that HPUX 7 has sys/wait.h but it does not work right. */ |
41184
556de690adf1
(HAVE_SYS_WAIT_H): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents:
28594
diff
changeset
|
222 #undef HAVE_SYS_WAIT_H |
46719
9fee2ba2f93d
(HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
Richard M. Stallman <rms@gnu.org>
parents:
41186
diff
changeset
|
223 #endif |
52401 | 224 |
225 /* arch-tag: 75c1239f-fedb-4f64-8f86-7893e75699e8 | |
226 (do not change this comment) */ |