Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!ciaraldi@Rochester.ARPA
From: ciaraldi@Rochester.ARPA
Newsgroups: net.micro.cpm
Subject: Uc.c
Message-ID: <16907@sri-arpa.UUCP>
Date: Wed, 22-Feb-84 11:24:45 EST
Article-I.D.: sri-arpa.16907
Posted: Wed Feb 22 11:24:45 1984
Date-Received: Fri, 2-Mar-84 13:03:13 EST
Lines: 30

From:  Mike Ciaraldi 

I have been using umodem.c (version 3.6) for
Unix to CP/M file transfers, and wanted to upgrade to 
uc.c, since it has CRC checksumming.

I fetched it from SIMTEL, and it compiled OK, but when I run
it I immediately get a segmentation fault, before it even
prints the sing-on message (the printf is the FIRST executable
statement!).
I contacted Rick Conn and he said he wrote this for System V.
We are running BSD 4.1c (soon to convert to 4.2).

For comparison, umodem has conditional-compile flags for
JHU (Johns Hopkins), VER7 (Version 7, also good for Berkeley),
and SYS3 (for System III, and V also, I suppose).

Does anyone know how to fix up uc.c? The differences on
umodem have to do with how you tell the system to kill echo,
go to 8-bit transmission, etc. But all these calls are
after the printf, so why don't we even see the sign-on message?
(last-minute thought: maybe the output buffer is not
getting flushed).  

I suppose I could hack up uc.c and put in the same things umodem
has, but if someone else has already done it, I would
appreciate a copy. Also, it should be added to the archives.

Mike Ciaraldi
ciaraldi@rochester