annotate src/s/hpux10-20.h @ 96595:cb1bfa1dca4f

* src/fileio.c: * src/sysdep.c * src/systty.h: * src/m/ibmrs6000.h: * src/m/iris4d.h: * src/s/aix4-2.h: * src/s/freebsd.h: * src/s/gnu-linux.h: * src/s/hpux10-20.h: * src/s/hpux11.h: * src/s/netbsd.h: * src/s/sol2-3.h: * src/s/sol2-4.h: * src/s/sol2.h: * src/s/usg5-4.h: * src/s/vms.h: Remove references to unused variables.
author Dan Nicolaescu <dann@ics.uci.edu>
date Thu, 10 Jul 2008 15:26:15 +0000
parents ddedcecb18ef
children a7401c5a0faa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
96303
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
1 /* System description file for hpux version 10.20.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
2 Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
3 2008 Free Software Foundation, Inc.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
4
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
5 This file is part of GNU Emacs.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
6
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
7 GNU Emacs is free software: you can redistribute it and/or modify
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
8 it under the terms of the GNU General Public License as published by
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
9 the Free Software Foundation, either version 3 of the License, or
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
10 (at your option) any later version.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
11
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
12 GNU Emacs is distributed in the hope that it will be useful,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
15 GNU General Public License for more details.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
16
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
17 You should have received a copy of the GNU General Public License
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
19
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
20
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
21 #define RUN_TIME_REMAP
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
22
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
23 /*
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
24 * Define symbols to identify the version of Unix this is.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
25 * Define all the symbols that apply correctly.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
26 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
27
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
28 #define USG /* System III, System V, etc */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
29
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
30 #define USG5
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
31
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
32 #define HPUX
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
33
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
34 /* SYSTEM_TYPE should indicate the kind of system you are using.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
35 It sets the Lisp variable system-type. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
36
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
37 #define SYSTEM_TYPE "hpux"
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
38
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
39 /* `nomultiplejobs' should be defined if your system's shell
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
40 does not have "job control" (the ability to stop a program,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
41 run some other program, then continue the first one).
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
42
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
43 On hpux this depends on the precise kind of machine in use,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
44 so the m- file defines this symbol if appropriate. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
45
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
46 /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
47
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
48 /* #define INTERRUPT_INPUT */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
49
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
50 /* Letter to use in finding device name of first pty,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
51 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
52
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
53 #define FIRST_PTY_LETTER 'p'
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
54
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
55 /*
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
56 * Define HAVE_TERMIO if the system provides sysV-style ioctls
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
57 * for terminal control.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
58 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
59
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
60 #define HAVE_TERMIO
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
61
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
62 /*
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
63 * Define HAVE_PTYS if the system supports pty devices.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
64 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
65
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
66 #define HAVE_PTYS
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
67
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
68 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
69
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
70 #define HAVE_SOCKETS
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
71
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
72 /* Define this symbol if your system has the functions bcopy, etc.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
73 * s800 and later versions of s300 (s200) kernels have equivalents
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
74 * of the BSTRING functions of BSD. If your s200 kernel doesn't have
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
75 * em comment out this section.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
76 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
77
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
78 #define BSTRING
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
79
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
80 /* subprocesses should be defined if you want to
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
81 have code for asynchronous subprocesses
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
82 (as used in M-x compile and M-x shell).
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
83 This is generally OS dependent, and not supported
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
84 under most USG systems. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
85
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
86 #define subprocesses
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
87
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
88 /* If your system uses COFF (Common Object File Format) then define the
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
89 preprocessor symbol "COFF". */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
90
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
91 /* #define COFF */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
92
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
93 /* define MAIL_USE_FLOCK if the mailer uses flock
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
94 to interlock access to /usr/spool/mail/$USER.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
95 The alternative is that a lock file named
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
96 /usr/spool/mail/$USER.lock. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
97
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
98 /* #define MAIL_USE_FLOCK */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
99
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
100 /* Say we have the SYSV style of interprocess communication. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
101
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
102 #define HAVE_SYSVIPC
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
103
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
104 /* Define CLASH_DETECTION if you want lock files to be written
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
105 so that Emacs can tell instantly when you try to modify
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
106 a file that someone else has modified in his Emacs. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
107
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
108 #define CLASH_DETECTION
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
109
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
110 /* The symbol in the kernel where the load average is found
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
111 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
112
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
113 /* Special hacks needed to make Emacs run on this system. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
114
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
115 /*
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
116 * Make the sigsetmask function go away. Don't know what the
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
117 * ramifications of this are, but doesn't seem possible to
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
118 * emulate it properly anyway at this point.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
119 */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
120
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
121 /* HPUX has sigsetmask */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
122 /* #define sigsetmask(mask) / * Null expansion * / */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
123
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
124 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
125 but they will run slower. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
126
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
127 /* HP-UX has _setjmp and _longjmp */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
128 /*
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
129 #define _setjmp setjmp
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
130 #define _longjmp longjmp
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
131 */
49891
a8c3025eb05a New file.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
132
96303
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
133 /* Use the system provided termcap(3) library */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
134 #define TERMINFO
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
135
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
136 /* In hpux, the symbol SIGIO is defined, but the feature
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
137 doesn't work in the way Emacs needs it to. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
138
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
139 #define BROKEN_SIGIO
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
140
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
141 /* USG systems tend to put everything declared static
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
142 into the initialized data area, which becomes pure after dumping Emacs.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
143 Foil this. Emacs carefully avoids static vars inside functions.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
144 http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00368.html
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
145 As of at least HPUX 11.11 (2000), it seems this workaround is no
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
146 longer needed. Try uncommenting the following if you have problems
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
147 on older versions. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
148
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
149 /* This is unnecessary in HPUX versions 10.20, 11.0, 11.11, 11.23. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
150
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
151 /* #define static */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
152
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
153 /* Some additional system facilities exist. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
154
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
155 #define HAVE_PERROR /* Delete this line for version 6. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
156
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
157 /* The following maps shared exec file to demand loaded exec.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
158 Don't do this as demand loaded exec is broken in hpux. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
159
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
160 /* Baud-rate values in tty status have nonstandard meanings. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
161
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
162 #define BAUD_CONVERT \
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
163 { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200, \
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
164 1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
165
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
166 /* This is how to get the device name of the tty end of a pty. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
167 #define PTY_TTY_NAME_SPRINTF \
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
168 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
169
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
170 /* This is how to get the device name of the control end of a pty. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
171 #define PTY_NAME_SPRINTF \
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
172 sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
173
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
174 /* This triggers a conditional in xfaces.c. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
175 #define XOS_NEEDS_TIME_H
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
176
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
177 /* Don't use shared libraries. unexec doesn't handle them.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
178 Note GCC automatically passes -a archive to ld, and it has its own
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
179 conflicting -a. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
180 #ifdef __GNUC__
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
181
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
182 #define LD_SWITCH_SYSTEM_TEMACS
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
183
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
184 #else /* not __GNUC__ */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
185 /* Note, -a only works for hpux ld, not cc. And "cc LD_SWITCH_SYSTEM"
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
186 is used in configure's $ac_link to do various autoconf checks.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
187 Since we only need -a when unexec'ing, only pass in -a to
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
188 "ld temacs" (ghazi@caip.rutgers.edu 7/10/97). */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
189 #if (defined(hp9000s700) || defined(__hp9000s700))
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
190 #define LD_SWITCH_SYSTEM_TEMACS -L/lib/pa1.1
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
191 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
192 #define LD_SWITCH_SYSTEM_TEMACS
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
193 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
194 #endif /* not __GNUC__ */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
195
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
196 /* Some hpux 8 machines seem to have TIOCGWINSZ,
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
197 and none have sioctl.h, so might as well define this. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
198 #define NO_SIOCTL_H
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
199
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
200 #ifndef HAVE_LIBXMU
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
201 /* HP-UX doesn't supply Xmu. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
202 #define LIBXMU
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
203
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
204 #endif
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
205
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
206 /* Assar Westerlund <assar@sics.se> says this is necessary for
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
207 HP-UX 10.20, and that it works for HP-UX 0 as well. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
208 #define NO_EDITRES
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
209
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
210 /* Tested in getloadavg.c. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
211 #define HAVE_PSTAT_GETDYNAMIC
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
212
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
213 /* Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
214 has a broken `rint' in some library versions including math library
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
215 version number A.09.05.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
216
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
217 You can fix the math library by installing patch number PHSS_4630.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
218 But we can fix it more reliably for Emacs like this. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
219 #undef HAVE_RINT
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
220
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
221 /* We have to go this route, rather than hpux9's approach of renaming the
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
222 functions via macros. The system's stdlib.h has fully prototyped
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
223 declarations, which yields a conflicting definition of srand48; it
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
224 tries to redeclare what was once srandom to be srand48. So we go
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
225 with HAVE_LRAND48 being defined. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
226 #undef srandom
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
227 #undef random
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
228 #undef HAVE_RANDOM
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
229
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
230 /* AlainF 20-Jul-1996 says this is right. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
231 #define KERNEL_FILE "/stand/vmunix"
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
232
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
233 #define LIBS_SYSTEM -l:libdld.sl
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
234
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
235 /* Rainer Malzbender <rainer@displaytech.com> says definining
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
236 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
237 using GCC. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
238
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
239 #ifndef HAVE_XRMSETDATABASE
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
240 #define HAVE_XRMSETDATABASE
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
241 #endif
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
242
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
243 /* Make sure we get select from libc rather than from libcurses
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
244 because libcurses on HPUX 10.10 has a broken version of select.
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
245 We used to use -lc -lcurses, but this may be cleaner. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
246 #define LIBS_TERMCAP -ltermcap
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
247
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
248 /* However, HPUX 10 puts Xaw and Xmu in a strange place
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
249 (if you install them at all). So search that place. */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
250 #define C_SWITCH_X_SYSTEM -I/usr/include/X11R6 -I/usr/include/X11R5 -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/contrib/X11R5/include
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
251 #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R6 -L/usr/lib/X11R5 -L/usr/lib/Motif1.2 -L/usr/contrib/X11R5/lib
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
252
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
253 /* 2000-11-21: Temporarily disable Unix 98 large file support found by
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
254 configure. It fails on HPUX 11, at least, because it enables
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
255 header sections which lose when `static' is defined away, as it is
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
256 on HP-UX. (You get duplicate symbol errors on linking). */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
257
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 52401
diff changeset
258 #undef _FILE_OFFSET_BITS
49891
a8c3025eb05a New file.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
259
a8c3025eb05a New file.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
260 /* otherwise sigunblock wont be defined */
a8c3025eb05a New file.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
261 #define POSIX_SIGNALS
a8c3025eb05a New file.
Juanma Barranquero <lekktu@gmail.com>
parents:
diff changeset
262
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49891
diff changeset
263 /* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49891
diff changeset
264 (do not change this comment) */