Mercurial > emacs
annotate src/s/usg5-4.h @ 108310:17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
* configure.in (HAVE_LIBNCURSES): New local variable.
(TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables,
replacing cpp in src/s/*.h and src/Makefile.in.
* src/Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
(TERMCAP_OBJ): New, set by configure, replacing termcapobj.
(termcapobj): Replace with TERMCAP_OBJ.
(otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
(LIBES): Use LIBS_TERMCAP as a variable.
* src/s/freebsd.h (osreldate.h): No longer include, since this file
does not use __FreeBSD_version any more.
* srs/s/aix4-2.h (TERMINFO):
* srs/s/cygwin.h (TERMINFO):
* srs/s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/freebsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
* srs/s/irix6-5.h (TERMINFO):
* srs/s/netbsd.h (LIBS_TERMCAP):
* srs/s/openbsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
* srs/s/usg5-4.h (TERMINFO):
Move to configure.
* msdos/sed1v2.inp (LIBS_TERMCAP): Edit to empty.
(TERMCAP_OBJ): Edit to tparam.o.
* admin/CPP-DEFINES (LIBS_TERMCAP, TERMINFO): Remove.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 07 May 2010 19:05:24 -0700 |
parents | 8416c8d075e3 |
children | f8e62c2bf3e9 |
rev | line source |
---|---|
456 | 1 /* Definitions file for GNU Emacs running on AT&T's System V Release 4 |
108310
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
2 |
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
3 Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
4 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
456 | 5 |
6 This file is part of GNU Emacs. | |
7 | |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
8 GNU Emacs is free software: you can redistribute it and/or modify |
1039 | 9 it under the terms of the GNU General Public License as published by |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
10 the Free Software Foundation, either version 3 of the License, or |
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
11 (at your option) any later version. |
456 | 12 |
1039 | 13 GNU Emacs is distributed in the hope that it will be useful, |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
456 | 20 |
21 /* This file written by James Van Artsdalen of Dell Computer Corporation. | |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
22 * james@bigtex.cactus.org. Subsequently improved for Dell 2.2 by Eric |
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
23 * S. Raymond <esr@snark.thyrsus.com>. |
456 | 24 */ |
25 | |
26 /* Use the SysVr3 file for at least base configuration. */ | |
27 | |
96303 | 28 #define USG /* System III, System V, etc */ |
456 | 29 |
96303 | 30 #define USG5 |
456 | 31 #define USG5_4 |
32 | |
96303 | 33 /* SYSTEM_TYPE should indicate the kind of system you are using. |
34 It sets the Lisp variable system-type. */ | |
35 | |
36 #define SYSTEM_TYPE "usg-unix-v" | |
37 | |
38 /* | |
39 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
40 * for terminal control. | |
41 */ | |
42 | |
43 #define HAVE_TERMIO | |
456 | 44 |
96303 | 45 /* |
46 * Define HAVE_PTYS if the system supports pty devices. | |
47 */ | |
48 | |
49 /* | |
50 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir | |
51 * library functions. Almost, but not quite the same as | |
52 * the 4.2 functions | |
53 */ | |
54 #define SYSV_SYSTEM_DIR | |
55 | |
56 /* The file containing the kernel's symbol table is called /unix. */ | |
57 | |
58 #define KERNEL_FILE "/unix" | |
59 | |
60 /* The symbol in the kernel where the load average is found | |
61 is named avenrun. */ | |
62 | |
63 #define LDAV_SYMBOL "avenrun" | |
64 | |
65 /* setjmp and longjmp can safely replace _setjmp and _longjmp, | |
66 but they will run slower. */ | |
67 | |
68 #define _setjmp setjmp | |
69 #define _longjmp longjmp | |
4336
96d3869ae231
(bzero, bcmp, bcopy): New macros.
Richard M. Stallman <rms@gnu.org>
parents:
4295
diff
changeset
|
70 |
96303 | 71 /* On USG systems these have different names */ |
72 #ifndef HAVE_INDEX | |
73 #define index strchr | |
74 #endif /* ! defined (HAVE_INDEX) */ | |
75 #ifndef HAVE_RINDEX | |
76 #define rindex strrchr | |
77 #endif /* ! defined (HAVE_RINDEX) */ | |
78 | |
79 | |
80 /* The docs for system V/386 suggest v.3 has sigpause, | |
81 so let's give it a try. */ | |
82 #define HAVE_SYSV_SIGPAUSE | |
83 | |
84 | |
85 /* If we're using the System V X port, BSD bstring functions will be handy */ | |
86 | |
87 #ifdef HAVE_X_WINDOWS | |
88 #define BSTRING | |
89 #endif /* HAVE_X_WINDOWS */ | |
90 | |
91 /* On USG systems signal handlers return void */ | |
92 | |
93 #define SIGTYPE void | |
94 | |
96378
1163f7459d65
Fix previous change: keep the correct branch of a
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96303
diff
changeset
|
95 #define ORDINARY_LINK |
1163f7459d65
Fix previous change: keep the correct branch of a
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96303
diff
changeset
|
96 |
456 | 97 /* Undump with ELF */ |
98 | |
99 #undef COFF | |
100 | |
101 #define UNEXEC unexelf.o | |
102 | |
103 /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct | |
104 * tchars. But get <termio.h> first to make sure ttold.h doesn't | |
105 * interfere. And don't try to use SIGIO yet. | |
106 */ | |
107 | |
13466
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
108 #ifndef NOT_C_CODE |
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
109 #include <sys/wait.h> |
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
110 #endif |
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
111 |
456 | 112 #ifdef emacs |
113 #include <sys/filio.h> | |
114 #include <termio.h> | |
115 #include <sys/ttold.h> | |
116 #include <signal.h> | |
1039 | 117 #include <sys/stream.h> |
118 #include <sys/stropts.h> | |
119 #include <sys/termios.h> | |
26090 | 120 #define BROKEN_SIGIO |
456 | 121 #endif |
122 | |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
123 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; |
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
124 * instead, there's a system variable _sys_nsig. Unfortunately, we need the |
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
125 * constant to dimension an array. So wire in the appropriate value here. |
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
126 */ |
26090 | 127 #define NSIG_MINIMUM 32 |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
128 |
456 | 129 /* We can support this */ |
130 | |
131 #define CLASH_DETECTION | |
132 | |
133 #define HAVE_PTYS | |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
134 #define HAVE_TERMIOS |
456 | 135 |
136 /* It is possible to receive SIGCHLD when there are no children | |
137 waiting, because a previous waitsys(2) cleaned up the carcass of child | |
138 without clearing the SIGCHLD pending info. So, use a non-blocking | |
139 wait3 instead, which maps to waitpid(2) in SysVr4. */ | |
140 | |
141 #define wait3(status, options, rusage) \ | |
8283
32427329c42c
(PTY_TTY_NAME_SPRINTF): Fail smoothly if cannot get pty.
Richard M. Stallman <rms@gnu.org>
parents:
7947
diff
changeset
|
142 waitpid ((pid_t) -1, (status), (options)) |
456 | 143 #define WRETCODE(w) (w >> 8) |
144 | |
145 /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY | |
146 subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and | |
147 this is all we need. */ | |
148 | |
149 #define TIOCSIGSEND TIOCSIGNAL | |
150 | |
151 /* This change means that we don't loop through allocate_pty too many | |
152 times in the (rare) event of a failure. */ | |
153 | |
154 #define FIRST_PTY_LETTER 'z' | |
155 | |
156 /* This sets the name of the master side of the PTY. */ | |
157 | |
158 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); | |
159 | |
160 /* Push various streams modules onto a PTY channel. */ | |
161 | |
162 #define SETUP_SLAVE_PTY \ | |
163 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ | |
164 fatal ("ioctl I_PUSH ptem", errno); \ | |
165 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ | |
166 fatal ("ioctl I_PUSH ldterm", errno); \ | |
167 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ | |
168 fatal ("ioctl I_PUSH ttcompat", errno); | |
169 | |
1039 | 170 /* This definition was suggested for next release. |
171 So give it a try. */ | |
172 #define HAVE_SOCKETS | |
4336
96d3869ae231
(bzero, bcmp, bcopy): New macros.
Richard M. Stallman <rms@gnu.org>
parents:
4295
diff
changeset
|
173 |
52401 | 174 /* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6 |
175 (do not change this comment) */ |