annotate src/s/ptx.h @ 10762:6ca3a749bebc

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