Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdccsu3.UUCP Path: utzoo!watmath!clyde!floyd!harpo!decvax!ittvax!dcdwest!sdcsvax!sdccsu3!brian From: brian@sdccsu3.UUCP Newsgroups: net.micro.cpm Subject: Re: Uc.c Message-ID: <1613@sdccsu3.UUCP> Date: Fri, 2-Mar-84 10:02:47 EST Article-I.D.: sdccsu3.1613 Posted: Fri Mar 2 10:02:47 1984 Date-Received: Sat, 3-Mar-84 23:49:10 EST References: <16907@sri-arpa.UUCP> Organization: UCSD beer & pizza society Lines: 27 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/