Mercurial > hg > xemacs-beta
annotate src/s/usg5-4.h @ 613:023b83f4e54b
[xemacs-hg @ 2001-06-10 10:42:16 by ben]
------ signal-code changes ------
data.c, device-tty.c, emacs.c, floatfns.c, linuxplay.c, nas.c,
process-unix.c, signal.c, sunplay.c, sysdep.c, syssignal.h:
use EMACS_SIGNAL everywhere instead of playing preprocessing
games with signal().
s\windowsnt.h, s\mingw32.h, syssignal.h:
Remove mswindows signal code from s+m headers and move to
syssignal.h as one of the five ways of signal handling,
instead of playing preprocessing games.
fileio.c, sysdep.c:
Rename sys_do_signal to qxe_reliable_signal.
signal.c, process-unix.c, profile.c:
Create set_timeout_signal(); use instead of just EMACS_SIGNAL
to establish a signal handler on a timeout signal; this does
special things under Cygwin.
nt.c:
Eliminate term_ntproc(), which is blank; used as a SIGABRT
handler, which was wrong anyway.
nt.c, win32.c:
Move signal code from nt.c to win32.c, since Cygwin needs it
too when dealing with timeout signals.
s\cygwin32.h:
Define CYGWIN_BROKEN_SIGNALS.
------ other changes ------
s\mingw32.h:
Fix problems with NOT_C_CODE being in the wrong place and
excluding defines needed when building Makefile.in.in.
filelock.c, mule-canna.c, mule-ccl.c, mule-ccl.h, ralloc.c,
unexalpha.c, unexapollo.c, unexcw.c, unexelfsgi.c, unexnt.c,
unexsni.c, s\aix3-1.h, s\bsd4-1.h, s\bsd4-2.h, s\bsd4-3.h, s\cxux.h,
s\cygwin32.h, s\dgux.h, s\dgux5-4r2.h, s\dgux5-4r3.h, s\dgux5-4r4.h,
s\ewsux5r4.h, s\gnu.h, s\hpux.h, s\iris3-5.h, s\iris3-6.h,
s\irix3-3.h, s\linux.h, s\mingw32.h, s\newsos5.h, s\nextstep.h,
s\ptx.h, s\riscix1-1.h, s\riscix1-2.h, s\rtu.h, s\sco4.h, s\sco5.h,
s\template.h, s\ultrix.h, s\umax.h, s\umips.h, s\unipl5-0.h,
s\unipl5-2.h, s\usg5-0.h, s\usg5-2-2.h, s\usg5-2.h, s\usg5-3.h,
s\usg5-4.h, s\windowsnt.h, s\xenix.h:
Rename 'GNU Emacs' to XEmacs in the copyright and comments.
nas.c:
Stylistic cleanup. Avoid preprocessing games with names such
as play_sound_file.
------ signal-code changes ------
data.c, device-tty.c, emacs.c, floatfns.c, linuxplay.c, nas.c,
process-unix.c, signal.c, sunplay.c, sysdep.c, syssignal.h:
use EMACS_SIGNAL everywhere instead of playing preprocessing
games with signal().
s\windowsnt.h, s\mingw32.h, syssignal.h:
Remove mswindows signal code from s+m headers and move to
syssignal.h as one of the five ways of signal handling,
instead of playing preprocessing games.
fileio.c, sysdep.c:
Rename sys_do_signal to qxe_reliable_signal.
signal.c, process-unix.c, profile.c:
Create set_timeout_signal(); use instead of just EMACS_SIGNAL
to establish a signal handler on a timeout signal; this does
special things under Cygwin.
nt.c:
Eliminate term_ntproc(), which is blank; used as a SIGABRT
handler, which was wrong anyway.
nt.c, win32.c:
Move signal code from nt.c to win32.c, since Cygwin needs it
too when dealing with timeout signals.
s\cygwin32.h:
Define CYGWIN_BROKEN_SIGNALS.
------ other changes ------
s\mingw32.h:
Fix problems with NOT_C_CODE being in the wrong place and
excluding defines needed when building Makefile.in.in.
filelock.c, mule-canna.c, mule-ccl.c, mule-ccl.h, ralloc.c,
unexalpha.c, unexapollo.c, unexcw.c, unexelfsgi.c, unexnt.c,
unexsni.c, s\aix3-1.h, s\bsd4-1.h, s\bsd4-2.h, s\bsd4-3.h, s\cxux.h,
s\cygwin32.h, s\dgux.h, s\dgux5-4r2.h, s\dgux5-4r3.h, s\dgux5-4r4.h,
s\ewsux5r4.h, s\gnu.h, s\hpux.h, s\iris3-5.h, s\iris3-6.h,
s\irix3-3.h, s\linux.h, s\mingw32.h, s\newsos5.h, s\nextstep.h,
s\ptx.h, s\riscix1-1.h, s\riscix1-2.h, s\rtu.h, s\sco4.h, s\sco5.h,
s\template.h, s\ultrix.h, s\umax.h, s\umips.h, s\unipl5-0.h,
s\unipl5-2.h, s\usg5-0.h, s\usg5-2-2.h, s\usg5-2.h, s\usg5-3.h,
s\usg5-4.h, s\windowsnt.h, s\xenix.h:
Rename 'GNU Emacs' to XEmacs in the copyright and comments.
nas.c:
Stylistic cleanup. Avoid preprocessing games with names such
as play_sound_file.
xemacs-faq.texi:
Update sections on Windows and MacOS availability.
alist.el, apropos.el, autoload.el, bytecomp.el, cl-compat.el, cl-extra.el, cl-macs.el, cl-seq.el, cl.el, cmdloop.el, cus-edit.el, derived.el, gpm.el, itimer.el, lisp-mode.el, shadow.el, version.el, wid-browse.el:
Rename 'GNU Emacs' to XEmacs in the copyright. Fix other
references to GNU Emacs that should be XEmacs or just Emacs.
files.el:
Fix warning.
simple.el:
transpose-line-up/down will now move the region up or down by
a line if active.
cvtmail.c, fakemail.c, gnuserv.c, gnuserv.h, gnuslib.c, make-msgfile.c, make-path.c, pop.c, pop.h, profile.c, tcp.c:
Rename 'GNU Emacs' to XEmacs in the copyright.
Fix comments in similar ways.
digest-doc.c, sorted-doc.c:
Fix program and author name to reflect XEmacs.
author | ben |
---|---|
date | Sun, 10 Jun 2001 10:42:39 +0000 |
parents | c69610198c35 |
children | 13e47461d509 |
rev | line source |
---|---|
613 | 1 /* Definitions file for XEmacs running on AT&T's System V Release 4 |
428 | 2 Copyright (C) 1987, 1990 Free Software Foundation, Inc. |
3 | |
613 | 4 This file is part of XEmacs. |
428 | 5 |
613 | 6 XEmacs is free software; you can redistribute it and/or modify |
428 | 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) | |
9 any later version. | |
10 | |
613 | 11 XEmacs is distributed in the hope that it will be useful, |
428 | 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 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. */ | |
20 | |
21 /* Synched up with: FSF 19.31. */ | |
22 | |
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>. | |
26 */ | |
27 | |
28 /* Use the SysVr3 file for at least base configuration. */ | |
29 | |
30 #define DONT_DEFINE_NO_REMAP /* `static' hack not needed */ | |
31 #include "usg5-3.h" | |
32 | |
33 #define USG5_4 | |
34 | |
35 #define LIBS_SYSTEM "-lsocket -lnsl -lelf" | |
36 #define ORDINARY_LINK | |
37 | |
38 #if 0 | |
39 #ifdef ORDINARY_LINK | |
40 #define LIB_STANDARD "-lc /usr/ucblib/libucb.a" | |
41 #else | |
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" | |
44 #endif | |
45 #else | |
46 | |
47 #ifdef ORDINARY_LINK | |
48 #define LIB_STANDARD | |
49 #else | |
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" | |
52 #endif | |
53 #endif | |
54 | |
55 /* there are no -lg libraries on this system, and no libPW */ | |
56 | |
57 #define LIBS_DEBUG | |
58 | |
59 /* No <sioctl.h> */ | |
60 | |
61 #define NO_SIOCTL_H | |
62 | |
63 /* Undump with ELF */ | |
64 | |
65 #undef COFF | |
66 | |
67 #define UNEXEC "unexelf.o" | |
68 | |
69 /* Get <sys/ttold.h> to get struct | |
70 * tchars. But get <termio.h> first to make sure ttold.h doesn't | |
71 * interfere. | |
72 */ | |
73 | |
74 #ifndef NOT_C_CODE | |
75 #include <sys/wait.h> | |
76 #endif | |
77 | |
78 #ifdef emacs | |
79 #include <sys/filio.h> | |
80 #include <termio.h> | |
81 #include <sys/ttold.h> | |
82 #include <signal.h> | |
83 #include <sys/stream.h> | |
84 #include <sys/termios.h> | |
85 #endif | |
86 | |
87 #undef BROKEN_SIGIO | |
88 | |
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. | |
92 */ | |
93 | |
94 #ifndef NSIG | |
95 #define NSIG 32 | |
96 #endif | |
97 | |
98 /* We need bss_end from emacs.c for undumping */ | |
99 | |
100 #ifndef USG_SHARED_LIBRARIES | |
101 #define USG_SHARED_LIBRARIES | |
102 #endif | |
103 | |
104 #undef BROKEN_TIOCGWINSZ | |
105 #undef BROKEN_TIOCGETC | |
106 | |
107 /* This change means that we don't loop through allocate_pty too many | |
108 times in the (rare) event of a failure. */ | |
109 | |
110 #undef FIRST_PTY_LETTER | |
111 #define FIRST_PTY_LETTER 'z' | |
112 | |
113 /* This sets the name of the master side of the PTY. */ | |
114 | |
115 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); | |
116 | |
117 /* This sets the name of the slave side of the PTY. On SysVr4, | |
118 grantpt(3) forks a subprocess, so keep sigchld_handler() from | |
119 intercepting that death. If any child but grantpt's should die | |
120 within, it should be caught after EMACS_UNBLOCK_SIGNAL. */ | |
121 | |
122 /* XEmacs change */ | |
123 #ifndef NOT_C_CODE | |
124 # if !__STDC__ && !defined(STDC_HEADERS) | |
125 char *ptsname (); | |
126 # endif | |
127 #endif | |
128 | |
129 #define PTY_TTY_NAME_SPRINTF \ | |
130 { \ | |
131 char *ptyname; \ | |
132 \ | |
133 EMACS_BLOCK_SIGCHLD; \ | |
134 if (grantpt (fd) == -1) \ | |
135 { close (fd); return -1; } \ | |
136 EMACS_UNBLOCK_SIGCHLD; \ | |
137 if (unlockpt (fd) == -1) \ | |
138 { close (fd); return -1; } \ | |
139 if (!(ptyname = ptsname (fd))) \ | |
140 { close (fd); return -1; } \ | |
141 strncpy (pty_name, ptyname, sizeof (pty_name)); \ | |
142 pty_name[sizeof (pty_name) - 1] = 0; \ | |
143 } | |
144 | |
145 /* Push various streams modules onto a PTY channel. */ | |
146 | |
147 #define SETUP_SLAVE_PTY \ | |
148 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ | |
149 fatal ("ioctl I_PUSH ptem: errno %d\n", errno); \ | |
150 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ | |
151 fatal ("ioctl I_PUSH ldterm: errno %d\n", errno); \ | |
152 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ | |
153 fatal ("ioctl I_PUSH ttcompat: errno %d\n", errno); | |
154 | |
155 /* Tell x11term.c and keyboard.c we have the system V streams feature. */ | |
156 #define SYSV_STREAMS | |
157 /* On Some SysV System , w3 freeze. If freeze your xemacs , Add below definition */ | |
158 /* This definition added by Shogo Fujii(shogo@bsd1.kbnes.nec.co.jp) */ | |
159 #define PROCESS_IO_BLOCKING |