no O_SYNC available?

fcntl (fileno(), F_SETFL, fcntl (fileno(), F_GETFL)|O_SYNC))

Es schrieb Dennis Ruffer:
> 
> >From experience, using a flash dongle, I can tell you that under both OSX
> and cygwin on Win2K, the files are not actually saved until you tell the OS
> to unmount the drive.  I've lost way too many files by pulling the dongle
> too soon! ;)
> 
> DaR
> 
> > -----Original Message-----
> > From: Anton Ertl [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 10, 2002 10:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [gforth] flush for sure SAVE-BUFFERS
> >
> >
> > John Peters wrote:
> > > I had that problem with F83s a few years ago.  We decided to write a
> > > Save-Buffers Forth word that closed the file and reopened
> > it instantly to be
> > > sure everything was written to disk.
> >
> > I don't think closing a file fsyncs it under Linux.
> >
> > - anton
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to