Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kolling@adobe.com (Karen Kolling)
Subject: Re: HELP NEEDED: SHARING STREAMS FILES
Date: Tue, 16 Nov 1993 20:56:57 GMT	[thread overview]
Message-ID: <1993Nov16.205657.10935@adobe.com> (raw)
In-Reply-To: 1993Nov16.201226.8471@adobe.com

In article <1993Nov16.201226.8471@adobe.com> kolling@adobe.com (Karen Kolling) writes:
>In article <2cb06i$coj@jac.zko.dec.com> cowan@btgmax.zko.dec.com (Ken Cowan) writes:
>>
>>The C RTL buffers data.  Assuming you use fflush and fsync
>>to get the file system coherent, you still have to content with
>>the C RTL.  I recently made a fix so that fflush flushes the
>>data it has read, in addition to the data that is pending for
>>writes.  This change may appear in OpenVMS VAX V6.1 (though it
>>is not yet in the master source pool).
>>
>>If you really want to workaround this, you could play with
>>various fseek() operations.  I'd guess that seeking to the
>>beginning of the file (or the end) and then seeking back
>>to your current position would work (as long as the file is
>>longer than a buffer's worth).  Calling setvbuf might also
>>have the side effect of flushing the cache.
>
>
>What happens if he closes the file each time before he releases the
>lock?  Would that get rid of the buffered clean data?  Would the
>overhead of closing and re-opening the file make this prohibitive?


Actually, closing and opening the file would presumably also make the
extra locking unnecessary.  I'm a little slow this morning :-)
-- 
Karen Kolling        kolling@adobe.com or kolling@netcom.com

 ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^ ^._.^


      reply	other threads:[~1993-11-16 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-11-15 15:57 HELP NEEDED: SHARING STREAMS FILES Pat O'Neil
1993-11-15 19:19 ` Karen Kolling
1993-11-16 16:47 ` Ken Cowan
1993-11-16 20:12   ` Karen Kolling
1993-11-16 20:56     ` Karen Kolling [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox