Mercurial > emacs
comparison src/s/hpux10-20.h @ 108561:23f4cd23ea89
merge trunk
author | Kenichi Handa <handa@etlken> |
---|---|
date | Fri, 14 May 2010 13:15:58 +0900 |
parents | f8e62c2bf3e9 |
children | 3ff97bad1c47 |
comparison
equal
deleted
inserted
replaced
108552:03ab6621f67d | 108561:23f4cd23ea89 |
---|---|
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
20 | 20 |
21 | 21 |
22 #define RUN_TIME_REMAP | 22 #define RUN_TIME_REMAP |
23 | 23 |
24 /* | 24 /* Define symbols to identify the version of Unix this is. |
25 * Define symbols to identify the version of Unix this is. | 25 Define all the symbols that apply correctly. */ |
26 * Define all the symbols that apply correctly. | |
27 */ | |
28 | |
29 #define USG /* System III, System V, etc */ | 26 #define USG /* System III, System V, etc */ |
30 | |
31 #define USG5 | 27 #define USG5 |
32 | |
33 #define HPUX | 28 #define HPUX |
34 | 29 |
35 /* SYSTEM_TYPE should indicate the kind of system you are using. | 30 /* SYSTEM_TYPE should indicate the kind of system you are using. |
36 It sets the Lisp variable system-type. */ | 31 It sets the Lisp variable system-type. */ |
37 | |
38 #define SYSTEM_TYPE "hpux" | 32 #define SYSTEM_TYPE "hpux" |
39 | 33 |
40 /* Letter to use in finding device name of first pty, | 34 /* Letter to use in finding device name of first pty, |
41 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ | 35 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ |
42 | |
43 #define FIRST_PTY_LETTER 'p' | 36 #define FIRST_PTY_LETTER 'p' |
44 | 37 |
45 /* | 38 /* Define HAVE_TERMIO if the system provides sysV-style ioctls |
46 * Define HAVE_TERMIO if the system provides sysV-style ioctls | 39 for terminal control. */ |
47 * for terminal control. | |
48 */ | |
49 | |
50 #define HAVE_TERMIO | 40 #define HAVE_TERMIO |
51 | 41 |
52 /* | 42 /* Define HAVE_PTYS if the system supports pty devices. */ |
53 * Define HAVE_PTYS if the system supports pty devices. | |
54 */ | |
55 | |
56 #define HAVE_PTYS | 43 #define HAVE_PTYS |
57 | 44 |
58 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 45 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
59 | |
60 #define HAVE_SOCKETS | 46 #define HAVE_SOCKETS |
61 | 47 |
62 /* Define this symbol if your system has the functions bcopy, etc. | 48 /* Define this symbol if your system has the functions bcopy, etc. |
63 * s800 and later versions of s300 (s200) kernels have equivalents | 49 s800 and later versions of s300 (s200) kernels have equivalents |
64 * of the BSTRING functions of BSD. If your s200 kernel doesn't have | 50 of the BSTRING functions of BSD. If your s200 kernel doesn't have |
65 * em comment out this section. | 51 em comment out this section. */ |
66 */ | |
67 | |
68 #define BSTRING | 52 #define BSTRING |
69 | 53 |
70 /* Define CLASH_DETECTION if you want lock files to be written | 54 /* Define CLASH_DETECTION if you want lock files to be written |
71 so that Emacs can tell instantly when you try to modify | 55 so that Emacs can tell instantly when you try to modify |
72 a file that someone else has modified in his Emacs. */ | 56 a file that someone else has modified in his Emacs. */ |
73 | |
74 #define CLASH_DETECTION | 57 #define CLASH_DETECTION |
75 | 58 |
76 /* The symbol in the kernel where the load average is found | 59 /* The symbol in the kernel where the load average is found |
77 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */ | 60 depends on the cpu type, so we let the m- files define LDAV_SYMBOL. */ |
78 | 61 |
79 /* Special hacks needed to make Emacs run on this system. */ | 62 /* Special hacks needed to make Emacs run on this system. */ |
80 | 63 |
81 /* In hpux, the symbol SIGIO is defined, but the feature | 64 /* In hpux, the symbol SIGIO is defined, but the feature |
82 doesn't work in the way Emacs needs it to. */ | 65 doesn't work in the way Emacs needs it to. */ |
83 | |
84 #define BROKEN_SIGIO | 66 #define BROKEN_SIGIO |
85 | 67 |
86 /* Some additional system facilities exist. */ | 68 /* Some additional system facilities exist. */ |
87 | |
88 #define HAVE_PERROR /* Delete this line for version 6. */ | 69 #define HAVE_PERROR /* Delete this line for version 6. */ |
89 | 70 |
90 #define UNEXEC unexhp9k800.o | 71 #define UNEXEC unexhp9k800.o |
91 | 72 |
92 /* This is how to get the device name of the tty end of a pty. */ | 73 /* This is how to get the device name of the tty end of a pty. */ |
110 /* Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines | 91 /* Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines |
111 has a broken `rint' in some library versions including math library | 92 has a broken `rint' in some library versions including math library |
112 version number A.09.05. | 93 version number A.09.05. |
113 | 94 |
114 You can fix the math library by installing patch number PHSS_4630. | 95 You can fix the math library by installing patch number PHSS_4630. |
115 But we can fix it more reliably for Emacs like this. */ | 96 But we can fix it more reliably for Emacs like this. */ |
116 #undef HAVE_RINT | 97 #undef HAVE_RINT |
117 | 98 |
118 /* We have to go this route, rather than hpux9's approach of renaming the | 99 /* We have to go this route, rather than hpux9's approach of renaming the |
119 functions via macros. The system's stdlib.h has fully prototyped | 100 functions via macros. The system's stdlib.h has fully prototyped |
120 declarations, which yields a conflicting definition of srand48; it | 101 declarations, which yields a conflicting definition of srand48; it |
127 /* AlainF 20-Jul-1996 says this is right. */ | 108 /* AlainF 20-Jul-1996 says this is right. */ |
128 #define KERNEL_FILE "/stand/vmunix" | 109 #define KERNEL_FILE "/stand/vmunix" |
129 | 110 |
130 | 111 |
131 /* Rainer Malzbender <rainer@displaytech.com> says definining | 112 /* Rainer Malzbender <rainer@displaytech.com> says definining |
132 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 | 113 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20 using GCC. */ |
133 using GCC. */ | |
134 #ifndef HAVE_XRMSETDATABASE | 114 #ifndef HAVE_XRMSETDATABASE |
135 #define HAVE_XRMSETDATABASE | 115 #define HAVE_XRMSETDATABASE |
136 #endif | 116 #endif |
137 | 117 |
138 /* 2000-11-21: Temporarily disable Unix 98 large file support found by | 118 /* 2000-11-21: Temporarily disable Unix 98 large file support found by |
143 | 123 |
144 /* Define NO_REMAP if memory segmentation makes it not work well | 124 /* Define NO_REMAP if memory segmentation makes it not work well |
145 to change the boundary between the text section and data section | 125 to change the boundary between the text section and data section |
146 when Emacs is dumped. If you define this, the preloaded Lisp | 126 when Emacs is dumped. If you define this, the preloaded Lisp |
147 code will not be sharable; but that's better than failing completely. */ | 127 code will not be sharable; but that's better than failing completely. */ |
148 | |
149 #define NO_REMAP | 128 #define NO_REMAP |
150 | 129 |
151 /* Define VIRT_ADDR_VARIES if the virtual addresses of | 130 /* Define VIRT_ADDR_VARIES if the virtual addresses of |
152 pure and impure space as loaded can vary, and even their | 131 pure and impure space as loaded can vary, and even their |
153 relative order cannot be relied on. | 132 relative order cannot be relied on. |
154 | 133 |
155 Otherwise Emacs assumes that text space precedes data space, | 134 Otherwise Emacs assumes that text space precedes data space, |
156 numerically. */ | 135 numerically. */ |
157 | |
158 #define VIRT_ADDR_VARIES | 136 #define VIRT_ADDR_VARIES |
159 | 137 |
160 /* the data segment on this machine always starts at address 0x40000000. */ | 138 /* The data segment on this machine always starts at address 0x40000000. */ |
161 | |
162 #define DATA_SEG_BITS 0x40000000 | 139 #define DATA_SEG_BITS 0x40000000 |
163 | 140 |
164 #define DATA_START 0x40000000 | 141 #define DATA_START 0x40000000 |
165 #define TEXT_START 0x00000000 | 142 #define TEXT_START 0x00000000 |
166 | 143 |
167 /* Data type of load average, as read out of kmem. */ | 144 /* Data type of load average, as read out of kmem. */ |
168 | |
169 #define LOAD_AVE_TYPE double | 145 #define LOAD_AVE_TYPE double |
170 | 146 |
171 /* Convert that into an integer that is 100 for a load average of 1.0 */ | 147 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
172 | |
173 #define LOAD_AVE_CVT(x) ((int) (x * 100.0)) | 148 #define LOAD_AVE_CVT(x) ((int) (x * 100.0)) |
174 | 149 |
175 /* The symbol in the kernel where the load average is found | 150 /* The kernel symbol where the load average is found is named _avenrun. |
176 is named _avenrun. At this time there are two major flavors | 151 At this time there are two major flavors of hp-ux (there is the s800 |
177 of hp-ux (there is the s800 and s300 (s200) flavors). The | 152 and s300 (s200) flavors). The differences are thusly moved to the |
178 differences are thusly moved to the corresponding machine description file. | 153 corresponding machine description file. */ |
179 */ | |
180 | 154 |
181 /* no underscore please */ | 155 /* No underscore please. */ |
182 #define LDAV_SYMBOL "avenrun" | 156 #define LDAV_SYMBOL "avenrun" |
183 | 157 |
184 /* On USG systems these have different names. */ | 158 /* On USG systems these have different names. */ |
185 | |
186 #define index strchr | 159 #define index strchr |
187 #define rindex strrchr | 160 #define rindex strrchr |
188 | 161 |
189 /* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6 | 162 /* arch-tag: 8d8dcbf1-ca9b-48a1-94be-b750de18a5c6 |
190 (do not change this comment) */ | 163 (do not change this comment) */ |