Mercurial > emacs
annotate src/s/sco4.h @ 78083:4986050dd338
(cvs-reread-cvsrc, cvs-header-msg, cvs-checkout)
(cvs-mode-checkout, cvs-execute-single-file): Use new function names
strings->string and string->strings.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Sun, 08 Jul 2007 06:51:48 +0000 |
parents | e90d04cd455a |
children | f06998349cfc 95d0cdf160ea |
rev | line source |
---|---|
2679 | 1 /* System description file for SCO 3.2v4. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, |
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
3 2005, 2006, 2007 Free Software Foundation, Inc. |
2679 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
7 GNU Emacs is free software; you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
9 the Free Software Foundation; either version 2, or (at your option) | |
10 any later version. | |
11 | |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02110-1301, USA. */ | |
2679 | 21 |
22 /* Contributed by Ian Lance Taylor, ian@cygnus.com. */ | |
23 | |
24 /* SCO is sort of like SVR3. */ | |
25 #include "usg5-3.h" | |
12535 | 26 #define SCO_R4 |
2679 | 27 |
4833
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
28 #if 0 /* Turned off rather than make the Lisp code check for this. -- rms. |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
29 I am assuming that (at least most of) the tests for usg-unix-v |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
30 do the right thing for sco3.2v4 also. Things that *might* be wrong |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
31 as a result of turning off these lines include the values of |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
32 ange-ftp-remote-shell-file-name (now remsh) |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
33 dired-chown-program (now just chown) |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
34 lpr-command (now lp) |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
35 nntp-buggy-select (now t) |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
36 rmail-spool-directory (now /usr/mail?) |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
37 and the actions of the function print-region-1. */ |
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
38 |
2679 | 39 /* SYSTEM_TYPE should indicate the kind of system you are using. */ |
40 #undef SYSTEM_TYPE | |
41 #define SYSTEM_TYPE "SCO 3.2v4" | |
4833
9b9d3d777a66
(SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents:
4253
diff
changeset
|
42 #endif |
2679 | 43 |
44 /* SCO supports job control. */ | |
45 #undef NOMULTIPLEJOBS | |
46 | |
47 /* SCO has termios. */ | |
48 #define HAVE_TERMIOS | |
49 | |
50 /* SCO has ptys with unusual names. */ | |
51 #define HAVE_PTYS | |
52 | |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
53 #define PTY_ITERATION \ |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
54 for (i = 0; ; i++) |
2679 | 55 #define PTY_NAME_SPRINTF \ |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
56 sprintf (pty_name, "/dev/ptyp%d", i); |
2679 | 57 #define PTY_TTY_NAME_SPRINTF \ |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
58 sprintf (pty_name, "/dev/ttyp%d", i); |
2679 | 59 |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
60 /* Sockets are an option on SCO. If you have X, you have them. |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
61 They also exist if you have TCP, but we don't know how to test |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
62 for that. */ |
2679 | 63 #ifdef HAVE_X_WINDOWS |
64 #define HAVE_SOCKETS | |
65 #endif | |
66 | |
11692
b7c7710644d3
[!__GNUC__] (LINKER): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
11369
diff
changeset
|
67 /* Must use 'cc' to link when build with motif toolkit. */ |
b7c7710644d3
[!__GNUC__] (LINKER): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
11369
diff
changeset
|
68 #ifndef __GNUC__ |
b7c7710644d3
[!__GNUC__] (LINKER): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
11369
diff
changeset
|
69 #define LINKER cc |
b7c7710644d3
[!__GNUC__] (LINKER): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
11369
diff
changeset
|
70 #endif |
b7c7710644d3
[!__GNUC__] (LINKER): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
11369
diff
changeset
|
71 |
5148
c3594b90f0ab
(LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
5127
diff
changeset
|
72 /* This is safe since we already assumed HAVE_SOCKET |
c3594b90f0ab
(LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
5127
diff
changeset
|
73 if using X windows. */ |
c3594b90f0ab
(LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
5127
diff
changeset
|
74 #undef LIBX11_SYSTEM |
20528
4ffe5887d8c6
(LIB_MOTIF): Define, if HAVE_LIBINTL.
Richard M. Stallman <rms@gnu.org>
parents:
20503
diff
changeset
|
75 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket |
4ffe5887d8c6
(LIB_MOTIF): Define, if HAVE_LIBINTL.
Richard M. Stallman <rms@gnu.org>
parents:
20503
diff
changeset
|
76 |
20503
29b573be752f
(LIBX11_SYSTEM) [HAVE_LIBINTL and MOTIF]: Add -lintl.
Richard M. Stallman <rms@gnu.org>
parents:
16798
diff
changeset
|
77 /* Motif needs -lintl on some (maybe all) ofthese systems. */ |
20528
4ffe5887d8c6
(LIB_MOTIF): Define, if HAVE_LIBINTL.
Richard M. Stallman <rms@gnu.org>
parents:
20503
diff
changeset
|
78 #ifdef HAVE_LIBINTL |
4ffe5887d8c6
(LIB_MOTIF): Define, if HAVE_LIBINTL.
Richard M. Stallman <rms@gnu.org>
parents:
20503
diff
changeset
|
79 #define LIB_MOTIF -lXm -lintl |
20503
29b573be752f
(LIBX11_SYSTEM) [HAVE_LIBINTL and MOTIF]: Add -lintl.
Richard M. Stallman <rms@gnu.org>
parents:
16798
diff
changeset
|
80 #endif |
5148
c3594b90f0ab
(LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
5127
diff
changeset
|
81 |
4253
42472fd44436
(HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents:
3236
diff
changeset
|
82 #ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */ |
42472fd44436
(HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents:
3236
diff
changeset
|
83 #define HAVE_SOCKETS |
42472fd44436
(HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents:
3236
diff
changeset
|
84 #endif |
42472fd44436
(HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents:
3236
diff
changeset
|
85 |
2679 | 86 #ifdef HAVE_SOCKETS |
5203
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
87 #define LIBS_SYSTEM -lsocket -lPW |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
88 |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
89 /* SCO has gettimeofday in socket library */ |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48457
diff
changeset
|
90 /* Autoconf should determine this, but for now, |
5031
cad49955c59e
(HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents:
4834
diff
changeset
|
91 play safe to avoid error rather than deleting this |
cad49955c59e
(HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents:
4834
diff
changeset
|
92 and risking the wrong result. */ |
cad49955c59e
(HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents:
4834
diff
changeset
|
93 #ifndef HAVE_GETTIMEOFDAY |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
94 #define HAVE_GETTIMEOFDAY |
2679 | 95 #endif |
5031
cad49955c59e
(HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents:
4834
diff
changeset
|
96 #endif |
2679 | 97 |
5203
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
98 /* This enables configure to tell that we have alloca. */ |
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
99 #ifndef LIBS_SYSTEM |
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
100 #define LIBS_SYSTEM -lPW |
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
101 #endif |
ff53ad0b94ed
(LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents:
5148
diff
changeset
|
102 |
5127
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
103 #ifdef HAVE_X11R5 |
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
104 /* configure can't get this right linking fails unless -lsocket is used. */ |
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
105 #undef HAVE_XSCREENNUMBEROFSCREEN |
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
106 #define HAVE_XSCREENNUMBEROFSCREEN |
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
107 #endif |
e1a169a43ac5
(HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents:
5102
diff
changeset
|
108 |
2679 | 109 /* We don't have -loldX, and we don't need it. */ |
110 #define LIB_XMENU_LIB | |
111 | |
112 /* SCO does have TIOCGWINSZ. */ | |
113 #undef BROKEN_TIOCGWINSZ | |
114 #define NEED_PTEM_H | |
115 | |
116 /* We need to link with crt1.o and crtn.o. */ | |
117 #define START_FILES pre-crt0.o /lib/crt1.o | |
118 #define LIB_STANDARD -lc /lib/crtn.o | |
3236
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
119 |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
120 /* Send signals to subprocesses by "typing" signal chars at them. */ |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
121 #define SIGNALS_VIA_CHARACTERS |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
122 |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
123 /* Specify program for etc/fakemail to run. Define SMAIL if you are |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
124 using smail, don't for MMDF. */ |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
125 |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
126 #ifdef SMAIL |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
127 #define MAIL_PROGRAM_NAME "/bin/smail -q0" |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
128 #else |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
129 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail" |
328132ed483c
(PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
130 #endif |
5436
513e73023f78
(bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5203
diff
changeset
|
131 |
7413
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7307
diff
changeset
|
132 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ |
39ba97525390
(PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7307
diff
changeset
|
133 #define PREFER_VSUSP |
8932
cdc7e11a5ca8
(POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
134 |
cdc7e11a5ca8
(POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
135 /* wjs@wang.com (William Smith) says this is needed on 3.2.4.2. */ |
cdc7e11a5ca8
(POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
136 #define POSIX_SIGNALS |
11369
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
137 |
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
138 /* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets", |
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
139 but only for network connections. |
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
140 It doesn't have the kind of sockets that emacsclient.c |
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
141 and emacsserver.c would use. */ |
36b641f83e0c
(NO_SOCKETS_IN_FILE_SYSTEM): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8932
diff
changeset
|
142 #define NO_SOCKETS_IN_FILE_SYSTEM |
25032 | 143 |
144 #define NARROWPROTO 1 | |
52401 | 145 |
146 /* arch-tag: 4dd6fe94-bcb7-4be0-942a-ff4bc3cd914e | |
147 (do not change this comment) */ |