[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'oldlinux' (#rtl) |
Lock a file (advisory lock)
Source position: line 0
function Flock( |
fd: LongInt; |
mode: LongInt |
):Boolean; |
var T: text; |
mode: LongInt |
):Boolean; |
var F: file; |
mode: LongInt |
):Boolean; |
FLock 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 True if successful, False otherwise.
If an error occurs, it is reported in LinuxError.
|
File control operations. |
No notes exist for this page yet.