annotate src/s/sco5.h @ 46:6a22abad6937 r19-15

Import from CVS: tag r19-15
author cvs
date Mon, 13 Aug 2007 08:55:31 +0200
parents 376386a54a3c
children 131b0175ea99
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 /* System description file for SCO OpenServer Release 5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 Copyright (C) 1993, 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: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* Changes for SCO OpenServer 5 by Robert Lipe, robertl@dgii.com
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 * Additions, enhancements by J. Kean Johnston, hug@netcom.com
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 #define DONT_DEFINE_NO_REMAP /* `static' hack not needed */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 /* JKJ: Yes its a lot like SCO 4, but different enough that its easier to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 * base it on stock SVR3 and add our stuff
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #include "usg5-3.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #define SCO_R4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #define SCO_R5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #undef SYSTEM_TYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #define SYSTEM_TYPE "SCO 3.2v5"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 /* SCO has ptys, but with weird names */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #define PTY_ITERATION \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 for (i = 0; ; i++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #define PTY_NAME_SPRINTF \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 sprintf (pty_name, "/dev/ptyp%d", i);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 #define PTY_TTY_NAME_SPRINTF \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 sprintf (pty_name, "/dev/ttyp%d", i);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 /* We have sockets. Always. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #ifndef HAVE_SOCKETS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #define HAVE_SOCKETS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 #ifndef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #define LINKER cc -Xc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #else
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
55 #define LINKER gcc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #undef LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #define LIBX11_SYSTEM -lsocket
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #undef LIB_X11_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 #define LIB_X11_LIB -lX11 -lgen
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 LIBS_SYSTEM -lsocket -lPW -lgen -lcrypt -lmalloc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #ifndef MAXPATHLEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 # define MAXPATHLEN PATHSIZE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 /* This is necessary to circumvent stupidity in <X11/Xosdefs.h>. That
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 file checks a manifest that is only defined by xmkmf. Alternately, we
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 could #define sco and I think everything would work. rjl */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 #define ANSICPP 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #ifndef HAVE_GETTIMEOFDAY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 #define HAVE_GETTIMEOFDAY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #undef ADDR_CORRECT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #define ADDR_CORRECT(x) (int)((char *)(x) - (char*)0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 #define C_SWITCH_SYSTEM -D_NO_STATIC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 #ifndef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #define C_OPTIMIZE_SWITCH -O3 -Xc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #define C_DEBUG_SWITCH -g -Xc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #else
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
88 #define C_OPTIMIZE_SWITCH -O99 -m486 -fomit-frame-pointer
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
89 #define C_DEBUG_SWITCH -g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 /* configure can't get this right linking fails unless -lsocket is used. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #undef HAVE_XSCREENNUMBEROFSCREEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 #define HAVE_XSCREENNUMBEROFSCREEN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 /* We don't have -loldX, and we don't need it. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 #define LIB_XMENU_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 /* SCO does have TIOCGWINSZ. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 #undef BROKEN_TIOCGWINSZ
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 #define NEED_PTEM_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
103 #ifndef __GNUC__
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/values-Xc.o
46
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
105 #else
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
106 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o
6a22abad6937 Import from CVS: tag r19-15
cvs
parents: 0
diff changeset
107 #endif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 #define LIB_STANDARD -lc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 /* Send signals to subprocesses by "typing" signal chars at them. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 #define SIGNALS_VIA_CHARACTERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 /* Specify program for etc/fakemail to run. Define SMAIL if you are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 using smail, don't for MMDF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 #ifdef SMAIL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 #define MAIL_PROGRAM_NAME "/usr/bin/smail -q0"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 #define PREFER_VSUSP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 #define POSIX_SIGNALS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 #undef PENDING_OUTPUT_COUNT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 #define PENDING_OUTPUT_COUNT(f) ((f)->__ptr - (f)->__base)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 #ifndef HAVE_VFORK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 #define HAVE_VFORK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 #ifdef _SCO_ELF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # undef COFF /* coz we're NOT */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 # define UNEXEC unexelf.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 # define LIB_GCC -lgcc-elf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139