From: CSBVAX::MRGATE!RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP 23-AUG-1988 21:24 To: ARISIA::EVERHART Subj: Stream file bug Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Tue, 23 AUG 88 05:24:32 PDT Received: from CUNYVM.CUNY.EDU by KL.SRI.COM with TCP; Tue, 23 Aug 88 05:16:06 PDT Received: from UMKCVAX1.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with BSMTP id 8086; Tue, 23 Aug 88 08:14:55 EDT Date: Tue, 23 Aug 88 07:10 CDT From: Subject: Stream file bug To: info-vax@kl.sri.com X-Original-To: info-vax@kl.sri.com, KIERSTEIN Info-VAXers, I posted a letter a while back about having problems with stream files when porting ARC. I have found the problem. In a stream file, if you seek back to a location in a file, and use fputc to write to the file, and the writing writes over a block boundary, then the next block is filled with zeros! (A stream file) |----------------------------------------------------------------------|(EOF) ^ ^ ^ ^ ^ ^ ^ 1) seek to here $ 2) fputc over to next block xxxxxx 3) zeros are put here 0000000 ^ = disk block boundaries I checked with CO Springs, and they confirmed this bug, and also found that it is fixed in V5.0. Barry Kierstein University of Missouri - Kansas City Kierstei@Umkcvax1.Bitnet