annotate src/s/ptx.h @ 18992:f0453e066438

Update leim/leim-list.el. Pass along value of $EMACS when updating lisp dir.
author Richard M. Stallman <rms@gnu.org>
date Fri, 25 Jul 1997 22:33:06 +0000
parents 3608b4a0c460
children 63fd40a97a75
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
14186
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 12064
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 12064
diff changeset
19 Boston, MA 02111-1307, USA. */
8969
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21 /* This file was written by Bill Burton <billb@progress.com>. Parts were
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 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
23 on the Sequent Public software tape. Other parts were adapted from
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24 usg5-4.h. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26 /* Use the SysVr3 file for base configuration even though much is changed. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 #include "usg5-3.h"
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 /* Undo these defines because they are incorrect or need to be changed. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30 #undef LIB_X11_LIB
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
31 #undef LIBX10_SYSTEM
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 #undef LIBX11_SYSTEM
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33 #undef USG_SHARED_LIBRARIES
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
34
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35 /* <sys/stat.h> *defines* stat as a static function. If "static"
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 is blank, then many files will have a public definition for stat. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 #undef static
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39 /* PTX supports job control. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #undef NOMULTIPLEJOBS
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 /* PTX has System V streams. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 #define SYSV_STREAMS
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45 /* 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
46 if the alloca found there by autoconf should be trusted on PTX. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 #define LIB_STANDARD -lc
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 /* Local define. If TCP/IP is not installed, comment this out. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50 #define TCPIP_INSTALLED
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 #ifdef TCPIP_INSTALLED
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53 #define HAVE_SOCKETS
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 /* If we have X windows, configure should find gettimeofday in -lX11.
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78 Since we emulate gettimeofday below, we really have it anyway. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 #ifndef HAVE_GETTIMEOFDAY
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 #define HAVE_GETTIMEOFDAY
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 #endif
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 #ifdef emacs
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84 #include <sys/stropts.h> /* Support for pty's */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85 #include <sys/conf.h>
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87 /*#undef SIGIO*/ /* SIGIO is already undef'd elsewhere. PTX
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 has SIGIO, but it's just an alias for
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89 SIGPOLL. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91 /* Emulate gettimeofday() except for the time zone information which Emacs
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 doesn't use anyway. Get_process_stats() is in -lseq. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 #include <sys/procstats.h>
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 #define gettimeofday(tp, tzp) get_process_stats (tp, PS_SELF, 0, 0)
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96 /* 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
97 trouble when building with X since this struct is defined in
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 <X11/Xos.h>. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99 struct timezone
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 {
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 int tz_minuteswest;
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 int tz_dsttime;
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
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 /* Unfortunately, this define is not checked in all files including
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 <X11/Xos.h> so we can't use it. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107 /* #define XOS_NEEDS_TIME_H */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109 /* In ptx/WINDOWS, this prevents problems with the timezone struct being
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 redefined in <X11/Xos.h>. It seems the necessary include files are
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 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
112 may not work in X11R5 or X11R6. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113 #define __TIMEVAL__
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115 #endif /* emacs */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 /* PTX doesn't have FIONREAD at all. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 #undef INTERRUPT_INPUT
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119 #define BROKEN_FIONREAD
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 /* We can support this */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122 #define CLASH_DETECTION
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 /* PTX has termios */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 #define HAVE_TERMIOS
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 #undef HAVE_TERMIO
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127 #undef BROKEN_TIOCGWINSZ
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 #undef BROKEN_TIOCGETC
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 /* It is possible to receive SIGCHLD when there are no children
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 waiting, because a previous waitsys cleaned up the carcass of child
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 without clearing the SIGCHLD pending info. So, use a non-blocking
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 wait3 instead, which maps to waitpid in SysVr4. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 /* Not sure if this is used but PTX does support waitpid. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 /*#define HAVE_WAIT_HEADER*/
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136 /*#define WAITTYPE int*/
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 #define wait3(status, options, rusage) \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138 waitpid ((pid_t) -1, (status), (options))
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 /*#define WRETCODE(w) (w >> 8)*/
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141 /* PTX has pty's but not like System V */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142 #define HAVE_PTYS
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 #undef SYSV_PTYS
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 /* Provide pty support which is defined into process.c:allocate_pty.
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146 Basic ideas for handling getpseudotty were lifted from process.c in
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 Emacs 18.57 included on the Sequent Public Software tape. However, this
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148 implementation bears almost no resemblance to the original and does not
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 require that process.c be patched. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 #define PTY_ITERATION \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151 char *mastername, *slavename; \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 while (1)
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 #define PTY_OPEN \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 if (failed_count++ >= 5) break; \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156 if ((fd = getpseudotty (&slavename, &mastername)) < 0) { \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 error("Out of ptys."); \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158 continue; \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159 } \
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 strcpy (pty_name, slavename);
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 /* Define these to prevent the default logic in process.c:allocate_pty
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 from being used. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 #define PTY_NAME_SPRINTF
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165 #define PTY_TTY_NAME_SPRINTF
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 /* PTX doesn't seem to have memmove. */
d62a9fd47cb2 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 #define MEMMOVE_MISSING
16402
3608b4a0c460 (POSIX_SIGNALS): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
169
3608b4a0c460 (POSIX_SIGNALS): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
170 /* Kenneth Stailey <kstailey@eagle.dol-esa.gov> says this is needed. */
3608b4a0c460 (POSIX_SIGNALS): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
171 #define POSIX_SIGNALS