help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Unix' (#rtl)

fsync

Synchronize file's kernel data with disk.

Declaration

Source position: unix.pp line 101

function fsync(

  fd: cint

):cint;

Description

Fsync 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 succesfull, 0 is returned. On failure, a nonzero value is returned.

Errors

Extended error information is returned by the FpGetErrno function:

See also

FpFLock

  

Lock a file (advisory lock)

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505