*BSD News Article 6031


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!agate!dog.ee.lbl.gov!horse.ee.lbl.gov!torek
From: torek@horse.ee.lbl.gov (Chris Torek)
Newsgroups: comp.unix.bsd
Subject: Re: [386BSD] stdio (fflush and "a+") problems / fix.
Date: 4 Oct 1992 21:55:53 GMT
Organization: Lawrence Berkeley Laboratory, Berkeley
Lines: 12
Message-ID: <26633@dog.ee.lbl.gov>
References: <1992Oct3.033742.4726@ponds.uucp>
Reply-To: torek@horse.ee.lbl.gov (Chris Torek)
NNTP-Posting-Host: 128.3.112.15
Keywords: stdio fflush append

In article <1992Oct3.033742.4726@ponds.uucp> rivers@ponds.uucp
(Thomas David Rivers) writes:
>A correction is to change the test  at line 51 of fflush.c from :
>	if ((fp->_flags & __SWR) == 0) {
>to
>	if ((fp->_flags & (__SWR | __SRW)) == 0 ) {

This is in fact the Officially Approved Fix (it is exactly what I
did), except that it is line 52 in mine. :-)
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 510 486 5427)
Berkeley, CA		Domain:	torek@ee.lbl.gov