Mercurial > emacs
annotate src/s/sco5.h @ 27403:220407a99b21
(XCharStruct): New struct for emulating X.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 23 Jan 2000 03:24:54 +0000 |
parents | ae314c884db0 |
children | 566fd2a966aa |
rev | line source |
---|---|
15463 | 1 /* System description file for SCO 3.2v5. |
15464 | 2 Copyright (C) 1996 Free Software Foundation, Inc. |
15463 | 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 | |
15742 | 17 along with GNU Emacs; see the file COPYING. If not, write to the |
18 Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
15463 | 20 |
15464 | 21 /* Contributed by Mark Diekhans <markd@grizzly.com>. */ |
15463 | 22 |
23 /* SCO is sort of like SVR3. */ | |
24 #include "usg5-3.h" | |
25 #define SCO_R5 | |
26 | |
27 #if 0 /* Turned off rather than make the Lisp code check for this. -- rms. | |
28 I am assuming that (at least most of) the tests for usg-unix-v | |
29 do the right thing for sco3.2v4 also. Things that *might* be wrong | |
30 as a result of turning off these lines include the values of | |
31 ange-ftp-remote-shell-file-name (now remsh) | |
32 dired-chown-program (now just chown) | |
33 lpr-command (now lp) | |
34 nntp-buggy-select (now t) | |
35 rmail-spool-directory (now /usr/mail?) | |
36 and the actions of the function print-region-1. */ | |
37 | |
38 /* SYSTEM_TYPE should indicate the kind of system you are using. */ | |
39 #undef SYSTEM_TYPE | |
40 #define SYSTEM_TYPE "SCO 3.2v4" | |
41 #endif | |
42 | |
43 /* SCO supports job control. */ | |
44 #undef NOMULTIPLEJOBS | |
45 | |
46 /* SCO has termios. */ | |
47 #define HAVE_TERMIOS | |
48 | |
49 /* SCO has ptys with unusual names. */ | |
50 #define HAVE_PTYS | |
51 | |
52 #define PTY_ITERATION \ | |
53 for (i = 0; ; i++) | |
54 #define PTY_NAME_SPRINTF \ | |
55 sprintf (pty_name, "/dev/ptyp%d", i); | |
56 #define PTY_TTY_NAME_SPRINTF \ | |
57 sprintf (pty_name, "/dev/ttyp%d", i); | |
58 | |
59 /* Sockets are an option on SCO. If you have X, you have them. | |
60 They also exist if you have TCP, but we don't know how to test | |
61 for that. */ | |
62 #ifdef HAVE_X_WINDOWS | |
63 #define HAVE_SOCKETS | |
64 #endif | |
65 | |
66 #ifndef __GNUC__ | |
67 #define LINKER ld | |
68 #endif | |
69 | |
70 /* This is safe since we already assumed HAVE_SOCKET | |
71 if using X windows. */ | |
72 #undef LIBX11_SYSTEM | |
16161
ec5135221ea4
(LIBX11_SYSTEM): Don't use ..._s libraries.
Richard M. Stallman <rms@gnu.org>
parents:
15857
diff
changeset
|
73 #define LIBX11_SYSTEM -lpt -lnls -lnsl -lc -lsocket |
15463 | 74 |
75 #undef LIB_X11_LIB | |
76 #define LIB_X11_LIB -lX11 | |
77 | |
78 #ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */ | |
79 #define HAVE_SOCKETS | |
80 #endif | |
81 | |
82 #ifdef HAVE_SOCKETS | |
83 #define LIBS_SYSTEM -lsocket -lPW | |
84 #endif | |
85 | |
86 #ifndef HAVE_GETTIMEOFDAY | |
87 #define HAVE_GETTIMEOFDAY | |
88 #endif | |
89 | |
90 /* This enables configure to tell that we have alloca. */ | |
91 #ifndef LIBS_SYSTEM | |
92 #define LIBS_SYSTEM -lPW | |
93 #endif | |
94 | |
95 #ifdef HAVE_X11R5 | |
96 /* configure can't get this right linking fails unless -lsocket is used. */ | |
97 #undef HAVE_XSCREENNUMBEROFSCREEN | |
98 #define HAVE_XSCREENNUMBEROFSCREEN | |
99 #endif | |
100 | |
101 /* We don't have -loldX, and we don't need it. */ | |
102 #define LIB_XMENU_LIB | |
103 | |
19853
89a91516559b
(BROKEN_MKTIME): Define.
Richard M. Stallman <rms@gnu.org>
parents:
16233
diff
changeset
|
104 /* Jean-Pierre Radley <jpr@jpr.com> reports in |
89a91516559b
(BROKEN_MKTIME): Define.
Richard M. Stallman <rms@gnu.org>
parents:
16233
diff
changeset
|
105 <news:19970906220024.40892@jpr.com> (1997-09-07) |
89a91516559b
(BROKEN_MKTIME): Define.
Richard M. Stallman <rms@gnu.org>
parents:
16233
diff
changeset
|
106 that mktime is broken in sco5 releases at least through 5.0.4. */ |
89a91516559b
(BROKEN_MKTIME): Define.
Richard M. Stallman <rms@gnu.org>
parents:
16233
diff
changeset
|
107 #define BROKEN_MKTIME 1 |
89a91516559b
(BROKEN_MKTIME): Define.
Richard M. Stallman <rms@gnu.org>
parents:
16233
diff
changeset
|
108 |
15463 | 109 /* SCO does have TIOCGWINSZ. */ |
110 #undef BROKEN_TIOCGWINSZ | |
111 #define NEED_PTEM_H | |
112 | |
113 /* We need to link with crt1.o and crtn.o. */ | |
114 #define START_FILES pre-crt0.o /lib/crt1.o | |
115 #define LIB_STANDARD -lc /lib/crtn.o | |
116 | |
117 /* Send signals to subprocesses by "typing" signal chars at them. */ | |
118 #define SIGNALS_VIA_CHARACTERS | |
119 | |
120 /* Specify program for etc/fakemail to run. Define SMAIL if you are | |
121 using smail, don't for MMDF. */ | |
122 | |
123 #ifdef SMAIL | |
124 #define MAIL_PROGRAM_NAME "/bin/smail -q0" | |
125 #else | |
126 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail" | |
127 #endif | |
128 | |
129 /* miano@acosta.enet.dec.com says these are needed. */ | |
130 #define bcopy(b1,b2,len) memmove (b2, b1, len) | |
131 #define bzero(b,len) memset (b, 0, len) | |
132 #define bcmp(b1,b2,len) memcmp (b1, b2, len) | |
133 | |
134 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ | |
135 #define PREFER_VSUSP | |
136 | |
15857
f3f1f879d812
(POSIX_SIGNALS): Don't define it, #undef instead.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
137 /* SCO Unix has Posix signals, but in 3.2.5 something broken that causes |
f3f1f879d812
(POSIX_SIGNALS): Don't define it, #undef instead.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
138 * all keyboard-quit signals to be lost after the first one. */ |
f3f1f879d812
(POSIX_SIGNALS): Don't define it, #undef instead.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
139 #undef POSIX_SIGNALS |
f3f1f879d812
(POSIX_SIGNALS): Don't define it, #undef instead.
Richard M. Stallman <rms@gnu.org>
parents:
15742
diff
changeset
|
140 #define sigblock(sig) (sigprocmask (SIG_BLOCK, SIGEMPTYMASK | sig, NULL)) |
15463 | 141 |
142 #ifndef PENDING_OUTPUT_COUNT | |
143 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) | |
144 #endif | |
145 | |
146 #ifndef HAVE_VFORK | |
147 #define HAVE_VFORK | |
148 #endif | |
149 | |
150 /* Use ELF and get real shared libraries */ | |
151 | |
152 #undef COFF | |
153 #define ELF | |
154 | |
155 #define UNEXEC unexelf.o | |
156 | |
16233
96a698bb6c17
(C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM): Don't define them if using GCC.
Richard M. Stallman <rms@gnu.org>
parents:
16161
diff
changeset
|
157 #ifndef __GNUC__ |
15463 | 158 #define C_SWITCH_SYSTEM -belf |
159 #define LD_SWITCH_SYSTEM -belf | |
16233
96a698bb6c17
(C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM): Don't define them if using GCC.
Richard M. Stallman <rms@gnu.org>
parents:
16161
diff
changeset
|
160 #endif |
15463 | 161 |
162 /* SCO has a working alloca in libPW */ | |
163 #define HAVE_ALLOCA | |
164 | |
165 /* Don't disable static function, as SCO's header files have some.*/ | |
166 #undef static | |
167 | |
168 #undef START_FILES | |
169 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/values-Xt.o | |
170 #undef LIB_STANDARD | |
171 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o | |
25032 | 172 |
173 #define NARROWPROTO 1 |