annotate src/s/sco4.h @ 9539:164a7cb8d0ea

(shell-command, shell-command-on-region): Rename arg FLAG to OUTPUT-BUFFER and allow it to be a buffer.
author Richard M. Stallman <rms@gnu.org>
date Sat, 15 Oct 1994 10:16:09 +0000
parents cdc7e11a5ca8
children 36b641f83e0c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 /* System description file for SCO 3.2v4.
7307
cd81dba38a49 Update copyright.
Karl Heuer <kwzh@gnu.org>
parents: 5587
diff changeset
2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 any later version.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 GNU General Public License for more details.
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20 /* Contributed by Ian Lance Taylor, ian@cygnus.com. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22 /* SCO is sort of like SVR3. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 #include "usg5-3.h"
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24
4833
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
25 #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
26 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
27 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
28 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
29 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
30 dired-chown-program (now just chown)
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
31 lpr-command (now lp)
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
32 nntp-buggy-select (now t)
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
33 rmail-spool-directory (now /usr/mail?)
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
34 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
35
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 /* SYSTEM_TYPE should indicate the kind of system you are using. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37 #undef SYSTEM_TYPE
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 #define SYSTEM_TYPE "SCO 3.2v4"
4833
9b9d3d777a66 (SYSTEM_TYPE): Put into #if 0.
Richard M. Stallman <rms@gnu.org>
parents: 4253
diff changeset
39 #endif
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41 /* SCO supports job control. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 #undef NOMULTIPLEJOBS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 /* SCO has termios. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 #define HAVE_TERMIOS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 /* SCO has ptys with unusual names. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 #define HAVE_PTYS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49
3236
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
50 #define PTY_ITERATION \
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
51 for (i = 0; ; i++)
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 #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
53 sprintf (pty_name, "/dev/ptyp%d", i);
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 #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
55 sprintf (pty_name, "/dev/ttyp%d", i);
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56
3236
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
57 /* 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
58 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
59 for that. */
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 #ifdef HAVE_X_WINDOWS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 #define HAVE_SOCKETS
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 #endif
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63
5148
c3594b90f0ab (LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents: 5127
diff changeset
64 /* 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
65 if using X windows. */
c3594b90f0ab (LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents: 5127
diff changeset
66 #undef LIBX11_SYSTEM
c3594b90f0ab (LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents: 5127
diff changeset
67 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
c3594b90f0ab (LIBX11_SYSTEM): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents: 5127
diff changeset
68
4253
42472fd44436 (HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents: 3236
diff changeset
69 #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
70 #define HAVE_SOCKETS
42472fd44436 (HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents: 3236
diff changeset
71 #endif
42472fd44436 (HAVE_SOCKETS): Define, if HAVE_INET_SOCKETS
Richard M. Stallman <rms@gnu.org>
parents: 3236
diff changeset
72
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73 #ifdef HAVE_SOCKETS
5203
ff53ad0b94ed (LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents: 5148
diff changeset
74 #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
75
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
76 /* SCO has gettimeofday in socket library */
5031
cad49955c59e (HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents: 4834
diff changeset
77 /* Autoconf should determine this, but for now,
cad49955c59e (HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents: 4834
diff changeset
78 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
79 and risking the wrong result. */
cad49955c59e (HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents: 4834
diff changeset
80 #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
81 #define HAVE_GETTIMEOFDAY
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 #endif
5031
cad49955c59e (HAVE_GETTIMEOFDAY): Don't define if already defined.
Richard M. Stallman <rms@gnu.org>
parents: 4834
diff changeset
83 #endif
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
84
5203
ff53ad0b94ed (LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents: 5148
diff changeset
85 /* 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
86 #ifndef LIBS_SYSTEM
ff53ad0b94ed (LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents: 5148
diff changeset
87 #define LIBS_SYSTEM -lPW
ff53ad0b94ed (LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents: 5148
diff changeset
88 #endif
ff53ad0b94ed (LIBS_SYSTEM): Always define this one way or another.
Richard M. Stallman <rms@gnu.org>
parents: 5148
diff changeset
89
5127
e1a169a43ac5 (HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents: 5102
diff changeset
90 #ifdef HAVE_X11R5
e1a169a43ac5 (HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents: 5102
diff changeset
91 /* 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
92 #undef HAVE_XSCREENNUMBEROFSCREEN
e1a169a43ac5 (HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents: 5102
diff changeset
93 #define HAVE_XSCREENNUMBEROFSCREEN
e1a169a43ac5 (HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents: 5102
diff changeset
94 #endif
e1a169a43ac5 (HAVE_GETTIMEOFDAY): Define only if HAVE_SOCKETS.
Richard M. Stallman <rms@gnu.org>
parents: 5102
diff changeset
95
2679
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
96 /* We don't have -loldX, and we don't need it. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97 #define LIB_XMENU_LIB
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
98
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
99 /* SCO does have TIOCGWINSZ. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100 #undef BROKEN_TIOCGWINSZ
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 #define NEED_PTEM_H
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103 /* We need to link with crt1.o and crtn.o. */
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104 #define START_FILES pre-crt0.o /lib/crt1.o
b18c93cb19dd Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105 #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
106
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
107 /* 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
108 #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
109
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
110 /* 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
111 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
112
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
113 #ifdef SMAIL
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
114 #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
115 #else
328132ed483c (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Redefined.
Richard M. Stallman <rms@gnu.org>
parents: 2989
diff changeset
116 #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
117 #endif
5436
513e73023f78 (bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5203
diff changeset
118
513e73023f78 (bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5203
diff changeset
119 /* miano@acosta.enet.dec.com says these are needed. */
513e73023f78 (bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5203
diff changeset
120 #define bcopy(b1,b2,len) memmove (b2, b1, len)
513e73023f78 (bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5203
diff changeset
121 #define bzero(b,len) memset (b, 0, len)
513e73023f78 (bcopy, bzero, bcmp): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5203
diff changeset
122 #define bcmp(b1,b2,len) memcmp (b1, b2, len)
7413
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7307
diff changeset
123
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7307
diff changeset
124 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
39ba97525390 (PREFER_VSUSP): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7307
diff changeset
125 #define PREFER_VSUSP
8932
cdc7e11a5ca8 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
126
cdc7e11a5ca8 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8892
diff changeset
127 /* 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
128 #define POSIX_SIGNALS