Next: FSStat
Up: Functions and procedures
Previous: FExpand
Procedure FLock (Var F; Mode : longint) ;
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 :
- LOCK_SH
- sets a shared lock.
- LOCK_EX
- sets an exclusive lock.
- LOCK_UN
- unlocks the file.
- LOCK_NB
- This can be OR-ed together with the other. If this is done
the application doesn't block when locking.
Errors are reported in LinuxError.
Fcntl, flock (2)
Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998