[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'Unix' (#rtl) |
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. |
No notes exist for this page yet.