#include <oskit/fs/file.h>oskit_error_t oskit_file_sync(oskit_file_t *f, oskit_bool_t wait);
client OS filesystem library
This method synchronizes the in-core copy of this file's data and metadata with the on-disk copy. If wait is TRUE, then the call does not return until all pending data has been completely written.
- f
- The file to sync.
- wait
- TRUE if the call should wait for completion.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.