Mercurial > emacs
annotate src/s/usg5-4.h @ 1868:f84d4b4b53da
* s/usg5-4.h: #include "usg5-3.h", not "s-usg5-3.h".
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sun, 14 Feb 1993 14:36:14 +0000 |
parents | 7961d1af11a7 |
children | 76df2de3dd55 |
rev | line source |
---|---|
456 | 1 /* Definitions file for GNU Emacs running on AT&T's System V Release 4 |
1039 | 2 Copyright (C) 1987, 1990 Free Software Foundation, Inc. |
456 | 3 |
4 This file is part of GNU Emacs. | |
5 | |
1039 | 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 1, or (at your option) | |
9 any later version. | |
456 | 10 |
1039 | 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. */ | |
456 | 19 |
20 /* This file written by James Van Artsdalen of Dell Computer Corporation. | |
21 * james@bigtex.cactus.org. | |
22 */ | |
23 | |
24 /* Use the SysVr3 file for at least base configuration. */ | |
25 | |
1868
f84d4b4b53da
* s/usg5-4.h: #include "usg5-3.h", not "s-usg5-3.h".
Jim Blandy <jimb@redhat.com>
parents:
1179
diff
changeset
|
26 #include "usg5-3.h" |
456 | 27 |
28 #define USG5_4 | |
29 | |
30 /* We do have multiple jobs. Handle ^Z. */ | |
31 | |
32 #undef NOMULTIPLEJOBS | |
33 | |
1179 | 34 #define LIBS_SYSTEM -lsocket -lnsl -lelf |
35 #define ORDINARY_LINK | |
456 | 36 |
1179 | 37 #if 0 /* These should be unnecessary now because of ORDINARY_LINK. */ |
38 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o | |
39 #define LIB_STANDARD -lc /usr/ucblib/libucb.a /usr/ccs/lib/crtn.o | |
40 #endif | |
456 | 41 |
1039 | 42 /* No <sioctl.h> */ |
456 | 43 |
1039 | 44 #define NO_SIOCTL_H |
456 | 45 |
46 /* Undump with ELF */ | |
47 | |
48 #undef COFF | |
49 | |
50 #define UNEXEC unexelf.o | |
51 | |
52 /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct | |
53 * tchars. But get <termio.h> first to make sure ttold.h doesn't | |
54 * interfere. And don't try to use SIGIO yet. | |
55 */ | |
56 | |
57 #ifdef emacs | |
58 #include <sys/filio.h> | |
59 #include <termio.h> | |
60 #include <sys/ttold.h> | |
61 #include <signal.h> | |
1039 | 62 #include <sys/wait.h> |
63 #include <sys/stream.h> | |
64 #include <sys/stropts.h> | |
65 #include <sys/termios.h> | |
456 | 66 #undef SIGIO |
67 #endif | |
68 | |
1039 | 69 /* libc has this stuff, but not utimes. */ |
456 | 70 |
71 #define HAVE_RENAME | |
72 #define HAVE_SELECT | |
73 #define HAVE_TIMEVAL | |
74 #define HAVE_CLOSEDIR | |
75 #define HAVE_GETTIMEOFDAY | |
76 #define HAVE_DUP2 | |
77 | |
78 /* <sys/stat.h> *defines* stat(2) as a static function. If "static" | |
79 * is blank, then many files will have a public definition for stat(2). | |
80 */ | |
81 | |
82 #undef static | |
83 | |
84 /* We need bss_end from emacs.c for undumping */ | |
85 | |
86 #ifndef USG_SHARED_LIBRARIES | |
87 #define USG_SHARED_LIBRARIES | |
88 #endif | |
89 | |
90 /* We can support this */ | |
91 | |
92 #define CLASH_DETECTION | |
93 | |
94 #define HAVE_PTYS | |
95 #define HAVE_SETSID | |
1039 | 96 #define HAVE_TCATTR |
456 | 97 |
98 /* It is possible to receive SIGCHLD when there are no children | |
99 waiting, because a previous waitsys(2) cleaned up the carcass of child | |
100 without clearing the SIGCHLD pending info. So, use a non-blocking | |
101 wait3 instead, which maps to waitpid(2) in SysVr4. */ | |
102 | |
103 #define HAVE_WAIT_HEADER | |
104 #define WAITTYPE int | |
105 #define wait3(status, options, rusage) \ | |
106 waitpid((pid_t) -1, (status), (options)) | |
107 #define WRETCODE(w) (w >> 8) | |
108 | |
109 /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY | |
110 subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and | |
111 this is all we need. */ | |
112 | |
113 #define TIOCSIGSEND TIOCSIGNAL | |
114 | |
115 /* This change means that we don't loop through allocate_pty too many | |
116 times in the (rare) event of a failure. */ | |
117 | |
118 #undef FIRST_PTY_LETTER | |
119 #define FIRST_PTY_LETTER 'z' | |
120 | |
121 /* This sets the name of the master side of the PTY. */ | |
122 | |
123 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); | |
124 | |
125 /* This sets the name of the slave side of the PTY. On SysVr4, | |
126 grantpt(3) forks a subprocess, so keep sigchld_handler() from | |
127 intercepting that death. If any child but grantpt's should die | |
128 within, it should be caught after sigrelse(2). */ | |
129 | |
130 #define PTY_TTY_NAME_SPRINTF \ | |
131 { \ | |
132 char *ptsname(), *ptyname; \ | |
133 \ | |
134 sighold(SIGCLD); \ | |
135 if (grantpt(fd) == -1) \ | |
136 fatal("could not grant slave pty"); \ | |
137 sigrelse(SIGCLD); \ | |
138 if (unlockpt(fd) == -1) \ | |
139 fatal("could not unlock slave pty"); \ | |
140 if (!(ptyname = ptsname(fd))) \ | |
141 fatal ("could not enable slave pty"); \ | |
142 strncpy(pty_name, ptyname, sizeof(pty_name)); \ | |
143 pty_name[sizeof(pty_name) - 1] = 0; \ | |
144 } | |
145 | |
146 /* Push various streams modules onto a PTY channel. */ | |
147 | |
148 #define SETUP_SLAVE_PTY \ | |
149 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ | |
150 fatal ("ioctl I_PUSH ptem", errno); \ | |
151 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ | |
152 fatal ("ioctl I_PUSH ldterm", errno); \ | |
153 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ | |
154 fatal ("ioctl I_PUSH ttcompat", errno); | |
155 | |
1039 | 156 /* The definition of this in s-usg5-3.h is not needed in 5.4. */ |
157 /* liblnsl_s should never be used. The _s suffix implies a shared | |
158 library, as opposed to a DLL. Share libraries were used in SVR3, and are | |
159 available only in order to allow SVR3 binaries to run. They should not be | |
160 linked in to new binaries. -- caraway!pinkas@caraway.intel.com. */ | |
161 #undef LIBX10_SYSTEM | |
162 #undef LIBX11_SYSTEM | |
456 | 163 |
1039 | 164 /* Tell x11term.c and keyboard.c we have the system V streams feature. */ |
165 #define SYSV_STREAMS | |
166 | |
167 /* This definition was suggested for next release. | |
168 So give it a try. */ | |
169 #define HAVE_SOCKETS |