![]() |
|
The mi_file_sync() function forces a write to disk of all pages in an operating-system file.
fd | is the file descriptor of the file to be written to disk. The file descriptor is obtained by a previous call to mi_file_open(). |
The mi_file_sync() function writes to disk all pages of the operating-system file that the fd file descriptor identifies.
This function can access files on the server computer from a C UDR.
The mi_file_sync() interface routine has no effect under Windows NT clients.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful. |
The mi_file_sync() function does not throw an MI_Exception event when it encounters a runtime error. Therefore, it does not cause callbacks to be invoked.
See the description of the mi_file_open() function.