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