[net.micro.cpm] More re UC.C under 4.2BSD Unix

w8sdz%brl@sri-unix.UUCP (12/30/83)

From:      Keith Petersen <w8sdz@brl>


----- Forwarded message # 1:

Date:     Fri, 30 Dec 83 9:03:49 EST
From:     Rick Conn <rconn@brl>
To:       Richard Kawala <kawala%ucbcory@ucb-vax>, 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