mmt@dciem.UUCP (Martin Taylor) (08/03/84)
Has anyone run macget successfully on a V7 system? I have converted macput (details below) and it is just fine, but macget transfers an undetermined number of packets before getting to a state where it does 10 retries and then hangs up (kicks me off the UNIX system). Sometimes I can transmit 4k (at 300 baud), sometimes zero. On the 4.2BSD Vax, macget works perfectly as far as I can tell. It is on the Perkin-Elmer 3242 (32-bit machine) and the PDP-11 (16-bit machine) under V7 that this indeterminate behaviour occurs. I have tried setting the file transfer parameters in MacTerminal (-0.15x) to put various time gaps between lines and between characters in case the problem was the V7 system getting behind, but it makes no difference. Changes made to the 4.2BSD version: Line 4: #include <sys/ioctl.h> --> #include <sgtty.h> Add: #define rename(x,y) link(x,y);unlink(x) (The above change macget to its state on the 32-bit Perkin-Elmer, and are the changes required for changing to 4.1 also, according to utzoo!peterr) For the PDP-11, a couple of "int" declarations had to be changed to "long". These are in struct macheader, m_datalen and m_rsrclen Changes to macput.c that seem to work are parallel: change sys/ioctl.h and (for 16-bit machines) the declarations of macheader.m_datalen and m_rsrclen. Also, the last function in the listing, put4, requires "value" to be declared "long" instead of "int". "rename" is not used in macput.c -- Martin Taylor {allegra,linus,ihnp4,floyd,ubc-vision}!utzoo!dciem!mmt {uw-beaver,qucis,watmath}!utcsrgv!dciem!mmt