<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<br>
<br>
Eugeny S. Mints wrote:<br>
<blockquote type="cite"
cite="midPine.LNX.4.33.0305221034260.7804-100000@mail.oktet.ru">
<pre wrap="">Angelo,
On Thu, 22 May 2003, Angelo Fraietta wrote:
</pre>
<blockquote type="cite">
<pre wrap="">fsync does not seem to be working as I think it should.
I have a large file that already exists on the drive.
I do the following:
File* fp = fopen (filename, "w+b");
if (fp)
{
char c = 'a';
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> fwrite (&a, 1, 1, fp);
</pre>
</blockquote>
<pre wrap=""><!----> ^^^^^ what's this?!
</pre>
</blockquote>
Sorry, typo <br>
<pre wrap=""> fwrite (&c, 1, 1, fp);
(I am developing my application on a different computer to the on I do email from so cut and paste not possible)
</pre>
<br>
<blockquote type="cite"
cite="midPine.LNX.4.33.0305221034260.7804-100000@mail.oktet.ru">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap=""> fsync(fileno(fp));
fclose (fp);
restartRtems();
}
The file on disk remains unchanged
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>