1 /* Definitions file for GNU Emacs running on AT&T's System V Release 4
2 Copyright (C) 1987, 1990 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
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)
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.
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Synched up with: FSF 19.31. */
23 /* This file written by James Van Artsdalen of Dell Computer Corporation.
24 * james@bigtex.cactus.org. Subsequently improved for Dell 2.2 by Eric
25 * S. Raymond <esr@snark.thyrsus.com>.
28 /* Use the SysVr3 file for at least base configuration. */
30 #define DONT_DEFINE_NO_REMAP /* `static' hack not needed */
35 #define LIBS_SYSTEM "-lsocket -lnsl -lelf"
40 #define LIB_STANDARD "-lc /usr/ucblib/libucb.a"
42 #define START_FILES "pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o"
43 #define LIB_STANDARD "-lc /usr/ucblib/libucb.a /usr/ccs/lib/crtn.o"
50 #define START_FILES "pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o"
51 #define LIB_STANDARD "-lc /usr/ccs/lib/crtn.o"
55 /* there are no -lg libraries on this system, and no libPW */
67 #define UNEXEC "unexelf.o"
69 /* Get <sys/ttold.h> to get struct
70 * tchars. But get <termio.h> first to make sure ttold.h doesn't
79 #include <sys/filio.h>
81 #include <sys/ttold.h>
83 #include <sys/stream.h>
84 #include <sys/termios.h>
89 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
90 * instead, there's a system variable _sys_nsig. Unfortunately, we need the
91 * constant to dimension an array. So wire in the appropriate value here.
94 #if defined(emacs) && !defined(NSIG)
96 #endif /* defined(emacs) && !defined(NSIG) */
98 /* We need bss_end from emacs.c for undumping */
100 #ifndef USG_SHARED_LIBRARIES
101 #define USG_SHARED_LIBRARIES
105 #undef BROKEN_TIOCGWINSZ
106 #undef BROKEN_TIOCGETC
108 /* This change means that we don't loop through allocate_pty too many
109 times in the (rare) event of a failure. */
111 #undef FIRST_PTY_LETTER
112 #define FIRST_PTY_LETTER 'z'
114 /* This sets the name of the master side of the PTY. */
116 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
118 /* This sets the name of the slave side of the PTY. On SysVr4,
119 grantpt(3) forks a subprocess, so keep sigchld_handler() from
120 intercepting that death. If any child but grantpt's should die
121 within, it should be caught after EMACS_UNBLOCK_SIGNAL. */
125 # if !__STDC__ && !defined(STDC_HEADERS)
130 #define PTY_TTY_NAME_SPRINTF \
134 EMACS_BLOCK_SIGCHLD; \
135 if (grantpt (fd) == -1) \
136 { close (fd); return -1; } \
137 EMACS_UNBLOCK_SIGCHLD; \
138 if (unlockpt (fd) == -1) \
139 { close (fd); return -1; } \
140 if (!(ptyname = ptsname (fd))) \
141 { close (fd); return -1; } \
142 strncpy (pty_name, ptyname, sizeof (pty_name)); \
143 pty_name[sizeof (pty_name) - 1] = 0; \
146 /* Push various streams modules onto a PTY channel. */
148 #define SETUP_SLAVE_PTY \
149 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
150 fatal ("ioctl I_PUSH ptem: errno %d\n", errno); \
151 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
152 fatal ("ioctl I_PUSH ldterm: errno %d\n", errno); \
153 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
154 fatal ("ioctl I_PUSH ttcompat: errno %d\n", errno);
156 /* Tell x11term.c and keyboard.c we have the system V streams feature. */
158 /* On Some SysV System , w3 freeze. If freeze your xemacs , Add below definition */
159 /* This definition added by Shogo Fujii(shogo@bsd1.kbnes.nec.co.jp) */
160 #define PROCESS_IO_BLOCKING