Date: Thu, 8 Apr 1999 11:55:00 -0400 Message-Id: <199904081555.LAA13248@envy.delorie.com> From: DJ Delorie To: eliz AT is DOT elta DOT co DOT il CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Eli Zaretskii on Thu, 8 Apr 1999 11:24:30 +0200 (IST)) Subject: Re: fflush question References: Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > I agree, provided that many/most Unix systems indeed behave that way. > Could people please test this on the systems they have access to? Linux doesn't need fsync(). This works as expected: #include main() { FILE *a, *b; int i; a = fopen("foo1", "w"); fprintf(a, "123456"); fflush(a); b = fopen("foo1", "r"); fscanf(b, "%d", &i); printf("i=%d\n"); }