aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu-linux.h
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-16 08:06:18 +0000
committerDan Nicolaescu2008-07-16 08:06:18 +0000
commit132d04752a194336e0ea965245294af64f27226f (patch)
tree1431f9f0381484382c74033ac993f2bfa5fa8c33 /src/s/gnu-linux.h
parent316460cf4825107087fed9a93694d3520b90d91f (diff)
downloademacs-132d04752a194336e0ea965245294af64f27226f.tar.gz
emacs-132d04752a194336e0ea965245294af64f27226f.zip
* systty.h: Remove code for Aix on 386, unsupported platform.
* s/ms-w32.h: Remove boilerplate comments. (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused. * s/gnu-linux.h (TERM): Remove support. (HAVE_SYSVIPC): Remove, unused. (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used for this system. * process.c: Remove support for IRIS, unused. Remove support for TERM, not relevant anymore. * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only used with the definition. * s/aix4-2.h (static): Do not undef. * m/ibmrs6000.h: Remove code depending on USG5_4, this file is only used on Aix. (HAVE_SYSVIPC): Remove, unused. * m/hp800.h (CANNOT_DUMP): Do not undef. * m/alpha.h: Fix comment. * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused. (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not used by this configuration. * emacs.c: Remove code depending on USG_SHARED_LIBRARIES. * unexec.c: Remove code depending on HPUX and USG_SHARED_LIBRARIES, not used with this file. Remove code depending on IRIS, unused. Remove if 0-ed code.
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r--src/s/gnu-linux.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 1904d71b6c8..445694987fd 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -90,7 +90,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
90 90
91#define FIRST_PTY_LETTER 'p' 91#define FIRST_PTY_LETTER 'p'
92 92
93#endif /* not HAVE_GRANDPT */ 93#endif /* not HAVE_GRANTPT */
94 94
95/* Define HAVE_TERMIOS if the system provides POSIX-style 95/* Define HAVE_TERMIOS if the system provides POSIX-style
96 functions and macros for terminal control. */ 96 functions and macros for terminal control. */
@@ -153,12 +153,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
153 your system and must be used only through an encapsulation 153 your system and must be used only through an encapsulation
154 (Which you should place, by convention, in sysdep.c). */ 154 (Which you should place, by convention, in sysdep.c). */
155 155
156/* If you mount the proc file system somewhere other than /proc
157 you will have to uncomment the following and make the proper
158 changes */
159
160/* #define LINUX_LDAV_FILE "/proc/loadavg" */
161
162/* This is needed for dispnew.c:update_frame */ 156/* This is needed for dispnew.c:update_frame */
163 157
164#ifdef emacs 158#ifdef emacs
@@ -220,14 +214,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
220#define C_DEBUG_SWITCH 214#define C_DEBUG_SWITCH
221#endif 215#endif
222 216
223/* Rob Malouf <malouf@csli.stanford.edu> says:
224 SYSV IPC is standard a standard part of Linux since version 0.99pl10,
225 and is a very common addition to previous versions. */
226
227#ifdef TERM
228#define LIBS_SYSTEM -lclient
229#define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term
230#else
231/* alane@wozzle.linet.org says that -lipc is not a separate library, 217/* alane@wozzle.linet.org says that -lipc is not a separate library,
232 since libc-4.4.1. So -lipc was deleted. */ 218 since libc-4.4.1. So -lipc was deleted. */
233#define LIBS_SYSTEM 219#define LIBS_SYSTEM
@@ -235,7 +221,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
235 _GNU_SOURCE. Left in in case it's relevant to libc5 systems and 221 _GNU_SOURCE. Left in in case it's relevant to libc5 systems and
236 anyone's still using Emacs on those. --fx 2002-12-14 */ 222 anyone's still using Emacs on those. --fx 2002-12-14 */
237#define C_SWITCH_SYSTEM -D_BSD_SOURCE 223#define C_SWITCH_SYSTEM -D_BSD_SOURCE
238#endif
239 224
240/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */ 225/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */
241#define LIB_MOTIF -lXm -lXpm 226#define LIB_MOTIF -lXm -lXpm
@@ -245,15 +230,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
245#define LIBS_TERMCAP -lncurses 230#define LIBS_TERMCAP -lncurses
246#endif 231#endif
247 232
248#define HAVE_SYSVIPC
249
250#define UNEXEC unexelf.o 233#define UNEXEC unexelf.o
251 234
252#define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0)
253#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
254#define ADJUST_EXEC_HEADER \
255 unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr)
256
257/* This is to work around mysterious gcc failures in some system versions. 235/* This is to work around mysterious gcc failures in some system versions.
258 It is unlikely that Emacs changes will work around this problem; 236 It is unlikely that Emacs changes will work around this problem;
259 therefore, this should remain permanently. */ 237 therefore, this should remain permanently. */