(Fwd) Re: DOSFS bug fixes, IDE drivers and sample released

Angelo Fraietta angelo_f at bigpond.com
Thu May 22 06:54:01 UTC 2003



Eugeny S. Mints wrote:

>Angelo,
>
>On Thu, 22 May 2003, Angelo Fraietta wrote:
>
>  
>
>>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';
>>    
>>
>
>  
>
>>    fwrite (&a, 1, 1, fp);
>>    
>>
>             ^^^^^ what's this?!
>  
>
Sorry, typo

    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)


>
>  
>
>>    fsync(fileno(fp));
>>    fclose (fp);
>>    restartRtems();
>>}
>>
>>The file on disk remains unchanged
>>    
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20030522/d1ef7884/attachment-0001.html>


More information about the users mailing list