[Overview][Constants][Types][Procedures and functions][Variables] |
Lock a file (advisory lock)
Source position: line 0
function fpFlock( |
fd: cInt; |
mode: cInt |
):cInt; |
var T: text; |
mode: cInt |
):cInt; |
var F: File; |
mode: cInt |
):cInt; |
FpFLock implements file locking. it sets or removes a lock on the file F. F can be of type Text or File, or it can be a linux filedescriptor (a longint) Mode can be one of the following constants :
The function returns zero if successful, a nonzero return value indicates an error.
Extended error information is returned by the FpGetErrno function:
|
File control operations. |
|
|
Synchronize file's kernel data with disk. |