XEmacs 21.2.36 "Notos"
[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 C_ALLOCA if this machine does not support a true alloca
59    and the one written in C should be used instead.
60    Define HAVE_ALLOCA to say that the system provides a properly
61    working alloca function and it should be used.
62    Define neither one if an assembler-language alloca
63    in the file alloca.s should be used.  */
64
65 #define C_ALLOCA
66 /* #define HAVE_ALLOCA /**/
67
68 /* Define NO_REMAP if memory segmentation makes it not work well
69    to change the boundary between the text section and data section
70    when Emacs is dumped.  If you define this, the preloaded Lisp
71    code will not be sharable; but that's better than failing completely.  */
72
73 #define NO_REMAP
74
75 /*
76  * end of the standard macro's
77  */
78
79 /*
80  * a neat identifier to handle source mods (if needed)
81  */
82 #ifndef DPX2
83 #define DPX2
84 #endif
85
86 /* Disable support for shared libraries in unexec.  */
87
88 #undef USG_SHARED_LIBRARIES
89
90 /*
91  * if we use X11, libX11.a has these...
92  */
93 # undef LIB_X11_LIB
94 # define LIB_X11_LIB "-lX11"
95 # undef LIBX11_SYSTEM
96 # define LIBX11_SYSTEM "-lmalloc -lnsl"
97
98 /*
99  * useful if you have INET loaded
100  */
101 # define LIBS_MACHINE "-linet"
102
103
104 #if (defined(ncl_mr) || defined(ncl_el)) && !defined (NBPC)
105 # define NBPC 4096
106 #endif
107
108 /*
109  * if SIGIO is defined, much of the emacs
110  * code assumes we are BSD !!
111  */
112 #ifdef SIGIO
113 #define BROKEN_SIGIO
114 #endif
115
116
117 #ifdef SIGTSTP
118 /*
119  * sysdep.c(sys_suspend) works fine with emacs-18.58
120  * and BOS 02.00.45, if you have an earler version
121  * of Emacs and/or BOS, or have problems, or just prefer
122  * to start a sub-shell rather than suspend-emacs,
123  * un-comment out the next line.
124  */
125 /* # undef SIGTSTP /* make suspend-emacs spawn a sub-shell */
126 #endif
127 /*
128  * no we don't want this at all
129  */
130 #ifdef USG_JOBCTRL
131 # undef USG_JOBCTRL
132 #endif
133
134 /* select also needs this header file--but not in ymakefile.  */
135 #ifndef NOT_C_CODE
136 #include <sys/types.h>
137 #include <sys/select.h>
138 #endif
139
140 #define TEXT_START 0
141
142 /* 
143  * Define the direction of stack growth. 
144  */
145
146 #define STACK_DIRECTION -1
147
148 /* we also have this */
149 #define HAVE_PTYS
150 #define SYSV_PTYS
151
152 /* on bos2.00.45 there is a bug that makes the F_SETOWN fcntl() call
153    enters in an infinite loop. Avoid calling it  */
154 #define F_SETOWN_BUG
155
156 /* system closedir sometimes complains about wrong descriptor
157    for no apparent reasons. Use the provided closedir in sysdep.c instead */
158 #ifdef HAVE_CLOSEDIR
159 #undef HAVE_CLOSEDIR
160 #endif
161
162 /* This is to prevent memory clobbering on the DPX/2 200.  */
163 #define LD_SWITCH_MACHINE "-N -T32"
164
165  /* end of dpx2.h */
166
167