Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!w8sdz@brl From: w8sdz%brl@sri-unix.UUCP Newsgroups: net.micro.cpm Subject: More re UC.C under 4.2BSD Unix Message-ID: <15123@sri-arpa.UUCP> Date: Fri, 30-Dec-83 13:53:36 EST Article-I.D.: sri-arpa.15123 Posted: Fri Dec 30 13:53:36 1983 Date-Received: Sat, 7-Jan-84 03:25:45 EST Lines: 33 From: Keith Petersen ----- Forwarded message # 1: Date: Fri, 30 Dec 83 9:03:49 EST From: Rick Conn To: Richard Kawala , w8sdz@BRL, rconn@BRL Subject: Re: uc.c Additional detail: Subject: Re: UC 1.4 Two problems with UC under 4.2BSD: the fstat subroutine needs to be renamed to avoid conflict with a system routine by the same name; on 4.2BSD it causes recursion until the stack blows out of memory whenever you use printf (like first thing in the banner line!) The timeouts used in getting a byte from the modem don't work in 4.2BSD. Either a select(2) call must be used or longjump. (Reason: in 4.2, an alarm signal received during a read will be processed and then the read is requeued. Thus the alarm to kill the read and return TIMEOUT never returns until a character is received. [Don't ASK how long it took to figure that one out!] -Brian Kantor, UC San Diego {decvax,ucbvax} !sdcsvax!sdccsu3!brian Kantor@Nosc ----- End of forwarded messages