Sign in Join
FPDoc Onlineexperiment

fpfsync function

In unit Unix

Synchronize file's kernel data with disk.

Declaration

pascal
function fpfsync(fd: cint): cint

Description

fpFSync synchronizes the kernel data for file fd (the cache) with the disk. The call will not return till all file data was written to disk.

If the call was successful, 0 is returned. On failure, a nonzero value is returned.

Errors

Extended error information is returned by the FpGetErrno function:

See also

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