Sign in Join
FPDoc Onlineexperiment

fdatasync function

In unit Linux

Synchronize the data in memory with the data on storage device.

Declaration

pascal
function fdatasync(fd: cint): cint

Description

fdatasync does the same as fpfsync but does not flush the metadata, unless it is vital to the correct reading/writing of the file. In practice, this means that unless the file size changed, the file metadata will not be synced.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.