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

Angelo Fraietta angelo_f at bigpond.com
Fri May 23 04:00:13 UTC 2003


Chris Johns wrote:

> Angelo Fraietta wrote:
>
>> Ralf Corsepius wrote:
>>
>>> Have you tried using sync(2)?
>>>
>>> I.e. something similar to this:
>>>
>>> fwrite( ...);
>>> fclose(..);
>>>  
>>>
>>> sync();
>>>
>> I get a link error -- undefined reference to sync
>>
>
> I do not see a 'sync' but I see:
>
>   int fsync(int fd); 

This how I got it to work

    fflush(fp);
    fsync (fileno(fp));
    fclose(fp);

-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


http://www.users.bigpond.com/angelo_f/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)








More information about the users mailing list