8969
|
1 /* Definitions file for GNU Emacs running on Sequent DYNIX/ptx 1.x/2.x
|
|
2 Copyright (C) 1987, 1990 Free Software Foundation, Inc.
|
|
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
|
|
17 along with GNU Emacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
19
|
|
20 /* This file was written by Bill Burton <billb@progress.com>. Parts were
|
|
21 adapted from m-ptx1-2.h and process.c as distributed with the Emacs 18.57
|
|
22 on the Sequent Public software tape. Other parts were adapted from
|
|
23 usg5-4.h. */
|
|
24
|
|
25 /* Use the SysVr3 file for base configuration even though much is changed. */
|
|
26 #include "usg5-3.h"
|
|
27
|
|
28 /* Undo these defines because they are incorrect or need to be changed. */
|
|
29 #undef LIB_X11_LIB
|
|
30 #undef LIBX10_SYSTEM
|
|
31 #undef LIBX11_SYSTEM
|
|
32 #undef USG_SHARED_LIBRARIES
|
|
33
|
|
34 /* <sys/stat.h> *defines* stat as a static function. If "static"
|
|
35 is blank, then many files will have a public definition for stat. */
|
|
36 #undef static
|
|
37
|
|
38 /* PTX supports job control. */
|
|
39 #undef NOMULTIPLEJOBS
|
|
40
|
|
41 /* PTX has System V streams. */
|
|
42 #define SYSV_STREAMS
|
|
43
|
|
44 /* Leave out -lPW since it conflicts with term.o and because we're not sure
|
|
45 if the alloca found there by autoconf should be trusted on PTX. */
|
|
46 #define LIB_STANDARD -lc
|
|
47
|
|
48 /* Local define. If TCP/IP is not installed, comment this out. */
|
|
49 #define TCPIP_INSTALLED
|
|
50
|
|
51 #ifdef TCPIP_INSTALLED
|
|
52 #define HAVE_SOCKETS
|
|
53 #else
|
|
54 #undef subprocesses
|
|
55 #endif
|
|
56
|
|
57 #ifdef HAVE_X_WINDOWS
|
|
58
|
|
59 #define LIBX11_SYSTEM -lsocket -linet -lnsl
|
|
60 /* This is also defined so that lib-src/profile can link. */
|
|
61 #define LIBS_SYSTEM -lseq
|
|
62
|
|
63 #else /* ! HAVE_X_WINDOWS */
|
|
64
|
|
65 #ifdef HAVE_SOCKETS
|
|
66 #define LIBS_SYSTEM -lsocket -linet -lnsl -lseq
|
|
67 #else
|
|
68 #define LIBS_SYSTEM -lseq
|
|
69 #endif
|
|
70
|
|
71 #endif /* ! HAVE_X_WINDOWS */
|
|
72
|
|
73 /* No <sioctl.h> */
|
|
74 #define NO_SIOCTL_H
|
|
75
|
|
76 /* If we have X windows, configure should find gettimeofday in -lX11.
|
|
77 Since we emulate gettimeofday below, we really have it anyway. */
|
|
78 #ifndef HAVE_GETTIMEOFDAY
|
|
79 #define HAVE_GETTIMEOFDAY
|
|
80 #endif
|
|
81
|
|
82 #ifdef emacs
|
|
83 #include <sys/stropts.h> /* Support for pty's */
|
|
84 #include <sys/conf.h>
|
|
85
|
|
86 /*#undef SIGIO*/ /* SIGIO is already undef'd elsewhere. PTX
|
|
87 has SIGIO, but it's just an alias for
|
|
88 SIGPOLL. */
|
|
89
|
|
90 /* Emulate gettimeofday() except for the time zone information which Emacs
|
|
91 doesn't use anyway. Get_process_stats() is in -lseq. */
|
|
92 #include <sys/procstats.h>
|
|
93 #define gettimeofday(tp, tzp) get_process_stats (tp, PS_SELF, 0, 0)
|
|
94
|
|
95 /* Define timezone since it's not in sys/time.h. Unfortunately, this causes
|
|
96 trouble when building with X since this struct is defined in
|
|
97 <X11/Xos.h>. */
|
|
98 struct timezone
|
|
99 {
|
|
100 int tz_minuteswest;
|
|
101 int tz_dsttime;
|
|
102 };
|
|
103
|
|
104 /* Unfortunately, this define is not checked in all files including
|
|
105 <X11/Xos.h> so we can't use it. */
|
|
106 /* #define XOS_NEEDS_TIME_H */
|
|
107
|
|
108 /* In ptx/WINDOWS, this prevents problems with the timezone struct being
|
|
109 redefined in <X11/Xos.h>. It seems the necessary include files are
|
|
110 included via systime.h so leaving them out here is not a problem. This
|
|
111 may not work in X11R5 or X11R6. */
|
|
112 #define __TIMEVAL__
|
|
113
|
|
114 #endif /* emacs */
|
|
115
|
|
116 /* PTX doesn't have FIONREAD at all. */
|
|
117 #undef INTERRUPT_INPUT
|
|
118 #define BROKEN_FIONREAD
|
|
119
|
|
120 /* We can support this */
|
|
121 #define CLASH_DETECTION
|
|
122
|
|
123 /* PTX has termios */
|
|
124 #define HAVE_TERMIOS
|
|
125 #undef HAVE_TERMIO
|
|
126 #undef BROKEN_TIOCGWINSZ
|
|
127 #undef BROKEN_TIOCGETC
|
|
128
|
|
129 /* It is possible to receive SIGCHLD when there are no children
|
|
130 waiting, because a previous waitsys cleaned up the carcass of child
|
|
131 without clearing the SIGCHLD pending info. So, use a non-blocking
|
|
132 wait3 instead, which maps to waitpid in SysVr4. */
|
|
133 /* Not sure if this is used but PTX does support waitpid. */
|
|
134 /*#define HAVE_WAIT_HEADER*/
|
|
135 /*#define WAITTYPE int*/
|
|
136 #define wait3(status, options, rusage) \
|
|
137 waitpid ((pid_t) -1, (status), (options))
|
|
138 /*#define WRETCODE(w) (w >> 8)*/
|
|
139
|
|
140 /* PTX has pty's but not like System V */
|
|
141 #define HAVE_PTYS
|
|
142 #undef SYSV_PTYS
|
|
143
|
|
144 /* Provide pty support which is defined into process.c:allocate_pty.
|
|
145 Basic ideas for handling getpseudotty were lifted from process.c in
|
|
146 Emacs 18.57 included on the Sequent Public Software tape. However, this
|
|
147 implementation bears almost no resemblance to the original and does not
|
|
148 require that process.c be patched. */
|
|
149 #define PTY_ITERATION \
|
|
150 char *mastername, *slavename; \
|
|
151 while (1)
|
|
152
|
|
153 #define PTY_OPEN \
|
|
154 if (failed_count++ >= 5) break; \
|
|
155 if ((fd = getpseudotty (&slavename, &mastername)) < 0) { \
|
|
156 error("Out of ptys."); \
|
|
157 continue; \
|
|
158 } \
|
|
159 strcpy (pty_name, slavename);
|
|
160
|
|
161 /* Define these to prevent the default logic in process.c:allocate_pty
|
|
162 from being used. */
|
|
163 #define PTY_NAME_SPRINTF
|
|
164 #define PTY_TTY_NAME_SPRINTF
|
|
165
|
|
166 /* PTX doesn't seem to have memmove. */
|
|
167 #define MEMMOVE_MISSING
|