This commit was generated by cvs2svn to compensate for changes in r1383,
[chise/xemacs-chise.git.1] / src / m / dpx2.h
1 /* machine description for Bull DPX/2 range 
2    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
3
4 This file is part of GNU Emacs.
5
6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING.  If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 /* Synched up with: FSF 19.31. */
22
23 /* The following line tells the configuration script what sort of 
24    operating system this machine is likely to run.
25    USUAL-OPSYS="usg5-3"  */
26
27 /*
28  * You need to either un-comment one of these lines, or copy one 
29  * of them to config.h before you include this file.
30  * Note that some simply define a constant and others set a value.
31  */
32
33 /* #define ncl_el       /* DPX/2 210,220 etc */
34 /* #define ncl_mr 1     /* DPX/2 320,340 (and 360,380 ?) */
35
36 /* Now define a symbol for the cpu type, if your compiler
37    does not define it automatically:
38    Ones defined so far include vax, m68000, ns16000, pyramid,
39    orion, tahoe, APOLLO and many others */
40
41 /* /bin/cc on ncl_el and ncl_mr define m68k and mc68000 */
42
43 /* Data type of load average, as read out of kmem.  */
44
45 #define LOAD_AVE_TYPE long
46
47 /* Convert that into an integer that is 100 for a load average of 1.0  */
48
49 #define FSCALE 1000.0
50 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
51
52 /* Define CANNOT_DUMP on machines where unexec does not work.
53    Then the function dump-emacs will not be defined
54    and temacs will do (load "loadup") automatically unless told otherwise.  */
55
56 /*#define CANNOT_DUMP /**/
57
58 /* Define VIRT_ADDR_VARIES if the virtual addresses of
59    pure and impure space as loaded can vary, and even their
60    relative order cannot be relied on.
61
62    Otherwise Emacs assumes that text space precedes data space,
63    numerically.  */
64
65 /* #define VIRT_ADDR_VARIES /**/
66
67 /* Define C_ALLOCA if this machine does not support a true alloca
68    and the one written in C should be used instead.
69    Define HAVE_ALLOCA to say that the system provides a properly
70    working alloca function and it should be used.
71    Define neither one if an assembler-language alloca
72    in the file alloca.s should be used.  */
73
74 #define C_ALLOCA
75 /* #define HAVE_ALLOCA /**/
76
77 /* Define NO_REMAP if memory segmentation makes it not work well
78    to change the boundary between the text section and data section
79    when Emacs is dumped.  If you define this, the preloaded Lisp
80    code will not be sharable; but that's better than failing completely.  */
81
82 #define NO_REMAP
83
84 /*
85  * end of the standard macro's
86  */
87
88 /*
89  * a neat identifier to handle source mods (if needed)
90  */
91 #ifndef DPX2
92 #define DPX2
93 #endif
94
95 /* Disable support for shared libraries in unexec.  */
96
97 #undef USG_SHARED_LIBRARIES
98
99 /*
100  * if we use X11, libX11.a has these...
101  */
102 # undef LIB_X11_LIB
103 # define LIB_X11_LIB "-lX11"
104 # undef LIBX11_SYSTEM
105 # define LIBX11_SYSTEM "-lmalloc -lnsl"
106
107 /*
108  * useful if you have INET loaded
109  */
110 # define LIBS_MACHINE "-linet"
111
112
113 #if (defined(ncl_mr) || defined(ncl_el)) && !defined (NBPC)
114 # define NBPC 4096
115 #endif
116
117 /*
118  * if SIGIO is defined, much of the emacs
119  * code assumes we are BSD !!
120  */
121 #ifdef SIGIO
122 #define BROKEN_SIGIO
123 #endif
124
125
126 #ifdef SIGTSTP
127 /*
128  * sysdep.c(sys_suspend) works fine with emacs-18.58
129  * and BOS 02.00.45, if you have an earler version
130  * of Emacs and/or BOS, or have problems, or just prefer
131  * to start a sub-shell rather than suspend-emacs,
132  * un-comment out the next line.
133  */
134 /* # undef SIGTSTP /* make suspend-emacs spawn a sub-shell */
135 #endif
136 /*
137  * no we don't want this at all
138  */
139 #ifdef USG_JOBCTRL
140 # undef USG_JOBCTRL
141 #endif
142
143 /* select also needs this header file--but not in ymakefile.  */
144 #ifndef NOT_C_CODE
145 #include <sys/types.h>
146 #include <sys/select.h>
147 #endif
148
149 #define TEXT_START 0
150
151 /* 
152  * Define the direction of stack growth. 
153  */
154
155 #define STACK_DIRECTION -1
156
157 /* we also have this */
158 #define HAVE_PTYS
159 #define SYSV_PTYS
160
161 /* on bos2.00.45 there is a bug that makes the F_SETOWN fcntl() call
162    enters in an infinite loop. Avoid calling it  */
163 #define F_SETOWN_BUG
164
165 /* system closedir sometimes complains about wrong descriptor
166    for no apparent reasons. Use the provided closedir in sysdep.c instead */
167 #ifdef HAVE_CLOSEDIR
168 #undef HAVE_CLOSEDIR
169 #endif
170
171 /* This is to prevent memory clobbering on the DPX/2 200.  */
172 #define LD_SWITCH_MACHINE "-N -T32"
173
174  /* end of dpx2.h */
175
176