Hi, everyone! If you have worked on ACE, this is the post for you.

I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: only fflush() exists in ACE_OS and it takes a FILE* pointer as an argument. It will not work with an ACE_HANDLE. So, instead of replacing all my ACE_HANDLEs with FILE, do you have a solution for me?

If there is no solution with an ACE_HANDLE, can you tell me if ACE_OS::write() method ensures an immediate flush of buffer on disk?

It's ok. I have found ACE_OS::fsync() that takes an handle as a parameter.