[comp.emacs] Gnu-emacs on ATT 3B2 under SYS V, rel 3.1 - fixed

dwex@wuccrc (David Wexelblat) (03/08/88)

Well, I have managed to solve the problems I encountered using Gnu Emacs
under System V Release 3.1.  The fix is to get 18.50.  Simple, huh?
I just modified the (new) file s-usg5-3.h to not use pseudo-ttys (just
comment those lines out).  I also added a '#define HAVE_SYSVIPC' to the
file.  This allows the server and client commands to work.  Also,
by changing 'C_DEBUG_SWITCH' to 'C_OPTIMIZE_SWITCH' on the compile
line in ymakefile, the dumped emacs will be under 1Mb, avoiding problems
with ulimit.

I also fixed the problem with Emacs over the StarLan.  This fix should apply
to other versions than 18.50, but I haven't tried it.  A patch to the
file keyboard.c is given below.  In addition, you must put a 
'#define ATT_STARLAN' somplace appropriate (like m-att3b.h).


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David Wexelblat	   Washington University in St. Louis  (314) 889-4794
UUCP:		   dwex@wuccrc.UUCP  or  ..!{ihnp4,uunet}!wucs1!wuccrc!dwex
ARPANET:	   wucs1!wuccrc!dwex@uunet.uu.net
CSNET:		   wucs1!wuccrc!dwex%uunet.uu.net@csnet-relay or
		   wucs1!wuccrc!dwex.uucp%bbncv.ARPA@csnet-relay

---------------------CUT HERE-----------CUT HERE------------------------------

*** keyboard.c.orig	Mon Mar  7 14:42:24 1988
--- keyboard.c	Mon Mar  7 14:43:17 1988
***************
*** 39,42 ****
--- 39,45 ----
  #include <termio.h>
  #include <fcntl.h>
+ #ifdef ATT_STARLAN
+ #include <errno.h>
+ #endif ATT_STARLAN
  #else /* not USG */
  #ifndef VMS
***************
*** 1025,1028 ****
--- 1028,1034 ----
    else
      kbd_count = read (fileno (stdin), kbd_buffer, sizeof kbd_buffer);
+ #ifdef ATT_STARLAN
+   kbd_count = ((kbd_count == -1) && (errno == EAGAIN)) ? 0 : kbd_count;
+ #endif ATT_STARLAN
    fcntl (fileno (stdin), F_SETFL, 0);
  #else /* not USG */


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David Wexelblat	   Washington University in St. Louis  (314) 889-4794
UUCP:		   dwex@wuccrc.UUCP  or  ..!{ihnp4,uunet}!wucs1!wuccrc!dwex
ARPANET:	   wucs1!wuccrc!dwex@uunet.uu.net
CSNET:		   wucs1!wuccrc!dwex%uunet.uu.net@csnet-relay or
		   wucs1!wuccrc!dwex.uucp%bbncv.ARPA@csnet-relay

mikel@codas.att.com (Mikel Manitius) (03/09/88)

In article <801@wucs2.UUCP>, dwex@wuccrc (David Wexelblat) writes:
> line in ymakefile, the dumped emacs will be under 1Mb, avoiding problems
> with ulimit.

Under SVR3.1 ULIMIT is a tuneable parameter in /etc/master.d/kernel.
-- 
					Mikel Manitius
					mikel@codas.att.com