annotate src/s/hpux.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 43dd3413c7c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Definitions file for GNU Emacs running on HPUX release 7.0.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Based on AT&T System V.2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 Copyright (C) 1985, 1986 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 * Define symbols to identify the version of Unix this is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 * Define all the symbols that apply correctly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #define USG /* System III, System V, etc */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #define USG5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #define HPUX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 /* XEmacs change: HPUX_PRE_8_0 needs to be defined for HP-UX 7.X and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 earlier. DO NOT UNCOMMENT THE FOLLOWING IF HP-UX 8.0 OR LATER IS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 BEING USED; HPUX_PRE_8_0 will be automatically #undef'd later, if
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 necessary. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #define HPUX_PRE_8_0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 /* SYSTEM_TYPE should indicate the kind of system you are using.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 It sets the Lisp variable system-type. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #define SYSTEM_TYPE "hpux"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 /* `nomultiplejobs' should be defined if your system's shell
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 does not have "job control" (the ability to stop a program,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 run some other program, then continue the first one).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 On hpux this depends on the precise kind of machine in use,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 so the m- file defines this symbol if appropriate. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* Letter to use in finding device name of first pty,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #define FIRST_PTY_LETTER 'p'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 * Define HAVE_PTYS if the system supports pty devices.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 #define HAVE_PTYS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 /* XEmacs addition */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #define HAVE_UNION_WAIT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* If your system uses COFF (Common Object File Format) then define the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 preprocessor symbol "COFF". */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* #define COFF */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 /* define MAIL_USE_FLOCK if the mailer uses flock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 to interlock access to /usr/spool/mail/$USER.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 The alternative is that a lock file named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 /usr/spool/mail/$USER.lock. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 /* #define MAIL_USE_FLOCK */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 /* Define SHORTNAMES if the C compiler can distinguish only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 short names. It means that the stuff in ../shortnames
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 must be run to convert the long names to short ones.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 Some USG systems support long names.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 If yours is one, DO NOT change this file!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 Do #undef SHORTNAMES in the m- file or in config.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 /* #define SHORTNAMES */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* The file containing the kernel's symbol table is called /hp-ux. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #define KERNEL_FILE "/hp-ux"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 /* The symbol in the kernel where the load average is found
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 /* Special hacks needed to make Emacs run on this system. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 /* On USG systems the system calls are interruptible by signals
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 that the user program has elected to catch. Thus the system call
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 must be retried in these cases. To handle this without massive
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 changes in the source code, we remap the standard system call names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 to names for our own functions in sysdep.c that do the system call
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 with retries. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 #define INTERRUPTIBLE_OPEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 #define INTERRUPTIBLE_IO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 /* XEmacs change */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 #define INTERRUPTIBLE_CLOSE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 /* Use the system provided termcap(3) library */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 #define TERMINFO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 /* The 48-bit versions are more winning for Emacs;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 the ordinary ones don't give even 32 bits. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 #define random lrand48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 #define srandom srand48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 /* In hpux, the symbol SIGIO is defined, but the feature
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 doesn't work in the way Emacs needs it to.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 XEmacs change: XEmacs has patches Darryl Okhahata (?) submitted to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 the FSF which allow interrupt input in emacs. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 /* #define BROKEN_SIGIO */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 /* USG systems tend to put everything declared static
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 into the initialized data area, which becomes pure after dumping Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 Foil this by defining NO_REMAP, which makes the purespace not pure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (Formerly this was avoided by doing '#define static' but this just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 fails with inline functions.) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 #ifndef DONT_DEFINE_NO_REMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #define NO_REMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 /* Define extra libraries to load.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 This should have -lBSD, but that library is said to make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 `signal' fail to work. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 #ifdef HPUX_NET
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 #define LIBS_SYSTEM -ln
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 /* Some additional system facilities exist. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 /* XEmacs change */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 /* #define HAVE_PERROR */ /* Delete this line for version 6. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 /* The following maps shared exec file to demand loaded exec.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 Don't do this as demand loaded exec is broken in hpux. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 #if 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 /* Adjust a header field for the executable file about to be dumped. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 #define ADJUST_EXEC_HEADER \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ? \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 NEWMAGIC : ohdr.a_magic);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 /* Baud-rate values in tty status have nonstandard meanings. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 #define BAUD_CONVERT \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 /* This is needed for HPUX version 6.2; it may not be needed for 6.2.1. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 #define SHORT_CAST_BUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 /* This is how to get the device name of the tty end of a pty. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 #define PTY_TTY_NAME_SPRINTF \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 /* This is how to get the device name of the control end of a pty. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 #define PTY_NAME_SPRINTF \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 /* This triggers a conditional in xfaces.c. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 #define XOS_NEEDS_TIME_H