Xref: utzoo comp.sys.att:2718 comp.emacs:2968 Path: utzoo!utgpu!water!watmath!clyde!att-cb!gwspc!n8emr!osu-cis!tut.cis.ohio-state.edu!mailrus!umix!uunet!wucs1!wucs2!wuccrc!dwex From: dwex@wuccrc (David Wexelblat) Newsgroups: comp.sys.att,comp.emacs Subject: Gnu-emacs on ATT 3B2 under SYS V, rel 3.1 - fixed Message-ID: <801@wucs2.UUCP> Date: 7 Mar 88 20:58:57 GMT Sender: usenet@wucs2.UUCP Reply-To: dwex@wuccrc.UUCP (David Wexelblat) Organization: Washington University Lines: 55 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 #include + #ifdef ATT_STARLAN + #include + #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