annotate src/s/cxux.h @ 163:0132846995bd r20-3b8

Import from CVS: tag r20-3b8
author cvs
date Mon, 13 Aug 2007 09:43:35 +0200
parents 376386a54a3c
children 2d532a89d707
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Header file for Harris CXUX.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 * Define symbols to identify the version of Unix this is.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 * Define all the symbols that apply correctly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 /* #define UNIPLUS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #define USG5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #define USG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 /* #define HPUX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 /* #define UMAX */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 /* #define BSD4_1 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 /* #define BSD4_2 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 /* #define BSD4_3 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* #define BSD */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 /* #define VMS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 #ifndef _CX_UX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #define _CX_UX 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 /* Define this symbol if you are running CX/UX 7.0 or later (7.0 introduced
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 * support for ELF files, and while we still build emacs in COFF format, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 * way it is linked is different for 7.0).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* #define USING_CX_UX_7 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #ifdef USING_CX_UX_7
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
50 #define LINKER "/usr/sde/coff/usr/bin/ld"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
51 #define LD_SWITCH_SYSTEM "-L/usr/sde/coff/usr/lib -zzero_word"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
52 #define START_FILES "pre-crt0.o /usr/sde/coff/usr/lib/crt0.o /usr/sde/coff/usr/lib/m88100.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #else /* !USING_CX_UX_7 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #ifdef _M88K
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
55 #define START_FILES "pre-crt0.o /lib/crt0.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #else
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
57 #define START_FILES "cxux-crt0.o /lib/crt0.o"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #endif /* USING_CX_UX_7 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 /* SYSTEM_TYPE should indicate the kind of system you are using.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 It sets the Lisp variable system-type. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #define SYSTEM_TYPE "usg-unix-v"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 0
diff changeset
66 #define C_SWITCH_SYSTEM "-Xa"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* Letter to use in finding device name of first pty,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 if system supports pty's. 'a' means it is /dev/ptya0 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 #define FIRST_PTY_LETTER 'A'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 #define PTY_ITERATION for (c = 'A'; c <= 'P'; c++) for (i = 0; i < 16; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #define NO_TERMIO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 * Define HAVE_PTYS if the system supports pty devices.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #define HAVE_PTYS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 /* If your system uses COFF (Common Object File Format) then define the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 preprocessor symbol "COFF". */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #define COFF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 /* define MAIL_USE_FLOCK if the mailer uses flock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 to interlock access to /usr/spool/mail/$USER.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 The alternative is that a lock file named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /usr/spool/mail/$USER.lock. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #define MAIL_USE_FLOCK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 /* If the character used to separate elements of the executable path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 is not ':', #define this to be the appropriate character constant. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 /* #define SEPCHAR ':' */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 /* Here, on a separate page, add any special hacks needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 to make Emacs work on this system. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 you might define certain system call names that don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 exist on your system, or that do different things on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 your system and must be used only through an encapsulation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 (Which you should place, by convention, in sysdep.c). */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 /* The symbol in the kernel where the load average is found
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 is named _avenrun. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #define LDAV_SYMBOL "_avenrun"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 #define KERNEL_FILE "/unix"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 /* There are too many kludges required to redefine malloc - use the system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 one */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 #define SYSTEM_MALLOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 /* const really does work, but I can't get configure to run the C compiler
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 * with the right options so it figures that out.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 #undef const
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 #define HAVE_GETWD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 /*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 * <pwd.h> already declares getpwuid, and with a uid_t argument in ANSI C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 * mode. Define this so xrdb.c will compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 #ifdef __STDC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 #define DECLARE_GETPWUID_WITH_UID_T
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 #endif