Date : Fri, 02 Mar 1984 07:02:47-PST (Fri)
From : decvax!ittvax!dcdwest!sdcsvax!sdccsu3!brian@ucb-vax
Subject: Re: Uc.c
x
We had exactly the same problem with uc.c on 4.1 - what you have to do
to fix it is change the fstat procedure name to something else - for
example, myfstat, as it is overlaying the system fstat in the io
library, and the first printf in the program is causing infinite
recursion until you blow the stack.
Be aware that the uc.c program will fail as soon as you go to 4.2 - it
uses alarm() to time out reads, and the entire signal handling mechanism
has changed in 4.2 in this respect, so you'll have to rewrite all the
sections of code that depend on that. Look into the 'select' system
call in your 4.2 manuals.
A few days ago I posted 'xmodem' - a sort of umodem program updated for
4.2 BSD. You'll find a working example of the select call and timeout
as it would be used in uc in that program. Or you could add crcs to
xmodem - I intended to but ran out of time.
--
-Brian Kantor, UC San Diego
Kantor@Nosc
ihnp4 \
decvax \
dcdwest ----- sdcsvax ----- brian
ittvax /
ucbvax/