[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Synchronize file's kernel data with disk.
Source position: unix.pp line 100
function fsync( |
fd: cint |
):cint; |
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.
Extended error information is returned by the FpGetErrno function:
|
Lock a file (advisory lock) |
lazarus-ccr.sourceforge.net |