Re: [Mono-dev] Cross-platform fsync()

2007-01-11 Thread Paolo Molaro
On 01/10/07 Robert Jordan wrote: Patrick Earl wrote: Greetings all. I've recently run into the need for a cross platform fsync() call. As far as I know, all of the flavors of unix that mono supports provide the fsync call themselves. On windows, there is a _commit() function that does

Re: [Mono-dev] Cross-platform fsync()

2007-01-11 Thread Robert Jordan
Alan McGovern wrote: Have you tried FileStream.Flush()? ;) Flush() intentionally doesn't call fsync nor FlushFileBuffers. Well, the original reason cited for a cross platform fsync() call was to perform a flush to disk operation on a filestream. I believe that's *exactly* what

Re: [Mono-dev] Cross-platform fsync()

2007-01-10 Thread Robert Jordan
Alan McGovern wrote: (sorry, just realised last message didn't go to mailing list) Hi, Have you tried FileStream.Flush()? ;) Flush() intentionally doesn't call fsync nor FlushFileBuffers. Robert Alan. On 1/9/07, Patrick Earl [EMAIL PROTECTED] wrote: Greetings all. I've recently

Re: [Mono-dev] Cross-platform fsync()

2007-01-10 Thread Patrick Earl
If I wanted to add this functionality to the mono class library so no p/invokes are required, does anyone have any suggestions where it should be added? I've seen most new functionality added to Mono.* classes, but I don't see anything like Mono.IO. Are there any guidelines on where something

Re: [Mono-dev] Cross-platform fsync()

2007-01-10 Thread Alan McGovern
Have you tried FileStream.Flush()? ;) Flush() intentionally doesn't call fsync nor FlushFileBuffers. Well, the original reason cited for a cross platform fsync() call was to perform a flush to disk operation on a filestream. I believe that's *exactly* what FileStream.Flush() is for. So

[Mono-dev] Cross-platform fsync()

2007-01-09 Thread Patrick Earl
Greetings all. I've recently run into the need for a cross platform fsync() call. As far as I know, all of the flavors of unix that mono supports provide the fsync call themselves. On windows, there is a _commit() function that does the same thing. It seems like the underlying platform support

Re: [Mono-dev] Cross-platform fsync()

2007-01-09 Thread Robert Jordan
Patrick Earl wrote: Greetings all. I've recently run into the need for a cross platform fsync() call. As far as I know, all of the flavors of unix that mono supports provide the fsync call themselves. On windows, there is a _commit() function that does the same thing. It seems like the

Re: [Mono-dev] Cross-platform fsync()

2007-01-09 Thread Alan McGovern
(sorry, just realised last message didn't go to mailing list) Hi, Have you tried FileStream.Flush()? ;) Alan. On 1/9/07, Patrick Earl [EMAIL PROTECTED] wrote: Greetings all. I've recently run into the need for a cross platform fsync() call. As far as I know, all of the flavors of unix that