[fpc-pascal] file locking cross platform

no reply noreply at z505.com
Fri Apr 3 20:18:32 CEST 2015


There are some major differences between the way Windows and Unix allow
locking of files with their api's, but is it possible to make a cross
platform LockFile() procedure or function for both unix and windows?

By file locking I of course mean when for example you have to write data
to a file but you want to lock it so no one else can write to the file,
then UnlockFile() when you are done with it.

If not cross platform, shouldn't one of the unix units have a LockFile
function at least?

Lars


More information about the fpc-pascal mailing list