[Overview][Constants][Types][Procedures and functions][Variables] |
Lock a file (advisory lock)
Source position: line 0
function Flock( |
fd: LongInt; |
mode: LongInt |
):Boolean; |
var T: text; |
mode: LongInt |
):Boolean; |
var F: ; |
mode: LongInt |
):Boolean; |
FLockimplements file locking. it sets or removes a lock on the file F. F can be of type Textor File, or it can be a linux filedescriptor (a longint) Modecan be one of the following constants :
The function returns Trueif successful, Falseotherwise.
If an error occurs, it is reported in LinuxError.
|
File control operations. |