Initial git import
[sxemacs] / src / s / cxux.h
1 /* Header file for Harris CXUX.
2    Copyright (C) 1994 Free Software Foundation, Inc.
3
4 This file is part of SXEmacs
5
6 SXEmacs 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 3 of the License, or
9 (at your option) any later version.
10
11 SXEmacs 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 this program.  If not, see <http://www.gnu.org/licenses/>. */
18
19
20 /* Synched up with: FSF 19.31. */
21
22 /*
23  *      Define symbols to identify the version of Unix this is.
24  *      Define all the symbols that apply correctly.
25  */
26
27 /* #define UNIPLUS */
28 #define USG5
29 #define USG
30 /* #define HPUX */
31 /* #define UMAX */
32 /* #define BSD4_1 */
33 /* #define BSD4_2 */
34 /* #define BSD4_3 */
35 /* #define BSD */
36
37 #ifndef _CX_UX
38 #define _CX_UX 1
39 #endif
40
41 /* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced
42  * support for ELF files, and while we still build emacs in COFF format, the
43  * way it is linked is different for 7.0).
44  */
45 /* #define USING_CX_UX_7 */
46
47 #ifdef USING_CX_UX_7
48 #define LINKER "/usr/sde/coff/usr/bin/ld"
49 #define LD_SWITCH_SYSTEM "-L/usr/sde/coff/usr/lib -zzero_word"
50 #define START_FILES "pre-crt0.o /usr/sde/coff/usr/lib/crt0.o /usr/sde/coff/usr/lib/m88100.o"
51 #else                           /* !USING_CX_UX_7 */
52 #ifdef  _M88K
53 #define START_FILES "pre-crt0.o /lib/crt0.o"
54 #else
55 #define START_FILES "cxux-crt0.o /lib/crt0.o"
56 #endif
57 #endif                          /* USING_CX_UX_7 */
58
59 /* SYSTEM_TYPE should indicate the kind of system you are using.
60  It sets the Lisp variable system-type.  */
61
62 #define SYSTEM_TYPE "usg-unix-v"
63
64 #define C_SWITCH_SYSTEM "-Xa"
65
66 /* Letter to use in finding device name of first pty,
67   if system supports pty's.  'a' means it is /dev/ptya0  */
68
69 #define FIRST_PTY_LETTER 'A'
70 #define PTY_ITERATION   for (c = 'A'; c <= 'P'; c++) for (i = 0; i < 16; i++)
71
72 /*
73  *      Define HAVE_PTYS if the system supports pty devices.
74  */
75
76 #define HAVE_PTYS
77
78 /* If your system uses COFF (Common Object File Format) then define the
79    preprocessor symbol "COFF". */
80
81 #define COFF
82
83 /* define MAIL_USE_FLOCK if the mailer uses flock
84    to interlock access to /usr/spool/mail/$USER.
85    The alternative is that a lock file named
86    /usr/spool/mail/$USER.lock.  */
87
88 #define MAIL_USE_FLOCK
89
90 /* If the character used to separate elements of the executable path
91    is not ':', #define this to be the appropriate character constant.  */
92 /* #define SEPCHAR ':' */
93
94 /* Here, on a separate page, add any special hacks needed
95    to make Emacs work on this system.  For example,
96    you might define certain system call names that don't
97    exist on your system, or that do different things on
98    your system and must be used only through an encapsulation
99    (Which you should place, by convention, in sysdep.c).  */
100 \f
101 /* The symbol in the kernel where the load average is found
102    is named _avenrun.  */
103
104 #define LDAV_SYMBOL "_avenrun"
105
106 #define KERNEL_FILE "/unix"
107
108 /* There are too many kludges required to redefine malloc - use the system
109    one */
110 #define SYSTEM_MALLOC
111
112 /* const really does work, but I can't get configure to run the C compiler
113  * with the right options so it figures that out.
114  */
115 #undef const
116
117 #define HAVE_GETWD
118
119 /*
120  * <pwd.h> already declares getpwuid, and with a uid_t argument in ANSI C
121  * mode.  Define this so xrdb.c will compile
122  */
123 #ifdef  __STDC__
124 #define DECLARE_GETPWUID_WITH_UID_T
125 #endif