fdatasync function

int fdatasync(
  1. int fildes
)

Synchronize at least the data part of a file with the underlying media.

Implementation

int fdatasync(
  int fildes,
) {
  _fdatasync ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(ffi.Int32), _dart_fdatasync>(
          'fdatasync');
  return _fdatasync!(
    fildes,
  );
}