85 |
#define bcmp memcmp |
#define bcmp memcmp |
86 |
#endif |
#endif |
87 |
|
|
88 |
#ifdef __hpux |
/* Common definitions for HPUX and GNU/Linux. */ |
89 |
|
|
90 |
|
#if defined (__hpux) || defined (GNU_LINUX) |
91 |
/* Now define a symbol for the cpu type, if your compiler |
/* Now define a symbol for the cpu type, if your compiler |
92 |
does not define it automatically: |
does not define it automatically: |
93 |
Ones defined so far include vax, m68000, ns16000, pyramid, |
Ones defined so far include vax, m68000, ns16000, pyramid, |
96 |
# define hp9000s800 |
# define hp9000s800 |
97 |
#endif |
#endif |
98 |
|
|
99 |
|
/* Define CANNOT_DUMP on machines where unexec does not work. |
100 |
|
Then the function dump-emacs will not be defined |
101 |
|
and temacs will do (load "loadup") automatically unless told otherwise. */ |
102 |
|
|
103 |
|
#undef CANNOT_DUMP |
104 |
|
|
105 |
|
#define STACK_DIRECTION 1 |
106 |
|
|
107 |
|
/* Define NO_REMAP if memory segmentation makes it not work well |
108 |
|
to change the boundary between the text section and data section |
109 |
|
when Emacs is dumped. If you define this, the preloaded Lisp |
110 |
|
code will not be sharable; but that's better than failing completely. */ |
111 |
|
|
112 |
|
#define NO_REMAP |
113 |
|
|
114 |
|
#endif /* __hpux or GNU_LINUX */ |
115 |
|
|
116 |
|
/* Stuff for just GNU/Linux. */ |
117 |
|
|
118 |
|
#ifdef GNU_LINUX |
119 |
|
|
120 |
|
#define HAVE_ALLOCA |
121 |
|
|
122 |
/* Data type of load average, as read out of kmem. */ |
/* Data type of load average, as read out of kmem. */ |
123 |
|
|
124 |
#define LOAD_AVE_TYPE double |
#define LOAD_AVE_TYPE long |
125 |
|
|
126 |
/* Convert that into an integer that is 100 for a load average of 1.0 */ |
/* Convert that into an integer that is 100 for a load average of 1.0 */ |
127 |
|
|
128 |
#define LOAD_AVE_CVT(x) ((int) (x * 100.0)) |
#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
|
|
|
129 |
|
|
130 |
/* Define CANNOT_DUMP on machines where unexec does not work. |
#endif /* GNU_LINUX */ |
131 |
Then the function dump-emacs will not be defined |
|
132 |
and temacs will do (load "loadup") automatically unless told otherwise. */ |
/* Stuff for just HPUX. */ |
133 |
|
|
134 |
#undef CANNOT_DUMP |
#ifdef __hpux |
135 |
|
|
136 |
/* Define VIRT_ADDR_VARIES if the virtual addresses of |
/* Define VIRT_ADDR_VARIES if the virtual addresses of |
137 |
pure and impure space as loaded can vary, and even their |
pure and impure space as loaded can vary, and even their |
159 |
#define DATA_START 0x40000000 |
#define DATA_START 0x40000000 |
160 |
#define TEXT_START 0x00000000 |
#define TEXT_START 0x00000000 |
161 |
|
|
|
#define STACK_DIRECTION 1 |
|
|
|
|
|
/* Define NO_REMAP if memory segmentation makes it not work well |
|
|
to change the boundary between the text section and data section |
|
|
when Emacs is dumped. If you define this, the preloaded Lisp |
|
|
code will not be sharable; but that's better than failing completely. */ |
|
|
|
|
|
#define NO_REMAP |
|
|
|
|
162 |
/* This machine requires completely different unexec code |
/* This machine requires completely different unexec code |
163 |
which lives in a separate file. Specify the file name. */ |
which lives in a separate file. Specify the file name. */ |
164 |
|
|
169 |
|
|
170 |
/* Include the file bsdtty.h, since this machine has job control. */ |
/* Include the file bsdtty.h, since this machine has job control. */ |
171 |
#define NEED_BSDTTY |
#define NEED_BSDTTY |
172 |
|
|
173 |
|
/* Data type of load average, as read out of kmem. */ |
174 |
|
|
175 |
|
#define LOAD_AVE_TYPE double |
176 |
|
|
177 |
|
/* Convert that into an integer that is 100 for a load average of 1.0 */ |
178 |
|
|
179 |
|
#define LOAD_AVE_CVT(x) ((int) (x * 100.0)) |
180 |
|
|
181 |
/* The symbol in the kernel where the load average is found |
/* The symbol in the kernel where the load average is found |
182 |
is named _avenrun. At this time there are two major flavors |
is named _avenrun. At this time there are two major flavors |
183 |
of hp-ux (there is the s800 and s300 (s200) flavors). The |
of hp-ux (there is the s800 and s300 (s200) flavors). The |