Xref: utzoo comp.emacs:4790 comp.unix.microport:2186 Path: utzoo!utgpu!watmath!clyde!att!alberta!calgary!bcscal!phil From: phil@bcscal.UUCP (Phil Kemp) Newsgroups: comp.emacs,comp.unix.microport Subject: MicroEmacs 3.10 Beta Test porting.. Keywords: Emacs, Microport, Select Message-ID: <178@bcscal.UUCP> Date: 6 Dec 88 05:11:17 GMT Organization: Boeing Computer, Calgary. Lines: 74 I am trying to port the Beta test version of MicroEmacs to Microport System V/AT version 2.4 (286 version). Understandably there are going to be some problems, that's why Beta tests exist. I have had experience only with Microport UNIX and am experiencing problems with the conversion. First off, there is the following chunk of code: fd_set fdset; struct timeval timeout; char cseq[6]; /* current sequence being parsed */ c = tgetc(); /* if it is not an escape character */ if (c != 27) { /* flag control chars as such */ if (c>=0x00 && c<=0x1F) c = CTRL | (c+'@'); return(c); } /* process a possible escape sequence */ /* set up to check the keyboard for input */ fdset.fds_bits[0] = (fd_mask)1; timeout.tv_sec = 0; timeout.tv_usec = 35000L; /* check to see if things are pending soon */ if (kbdmode != PLAY && select(1, &fdset, NULL, NULL, &timeout) == 0) return(CTRL | '['); /* a key is pending within 1/30 of a sec... its an escape sequence */ This seems to be a sort of time pending check on input based on the stuctures timeout and fdset, and the system call select. ( select I understand to be a BSD animal ) Could someone suggest a System V equivalent function to select, or possibly a function which could perform the same as above? I am also experiencing core dumps, ( if I circumvent the above code section. ). I have traced them down to a call to tcapopen, which calls tgetstr and then makes a call to a routine 'lp' to which I can find no reference to. It sounds like curses may be getting upset about some termcap equivalent calls, sending function references into never-never land. Tcapopen is in tcap.c. As a point of reference, is anyone else porting Micro-Emacs 3.10 Beta to Microport System V/AT 2.4? If so please write me with some suggestions on my project. I am using this as a training ground for UNIX and C. Any guidance is greatly appreciated. Please e-mail your responses to me. I will forward any success summaries to Daniel Lawrence and summarize for the net. BTW this is a modified reposting of an article I tried to send last week. I hope this one gets further..... Thanks in advance.... Phil Kemp Boeing Computer Services, Calgary Voice - (403)-269-8281 calgary!bcscal!phil -- Phil Kemp Boeing Computer Services, Calgary Voice - (403)-269-8281 bcscal!phil@calgary.uucp