[fpc-pascal] (Unix) file locking

Fabio Luis Girardi fluisgirardi at gmail.com
Tue Jun 21 00:37:00 CEST 2016


2016-06-20 18:15 GMT-03:00 Björn Lundin <b.f.lundin at gmail.com>:
>
>
> on Linux and AIX I use lockf.
> then read() and write() from the os.
> However I lock the whole file, but the manpage says it is possible to
> lock parts of it.
>
>
>
This can be used to lock character devices, like /dev/ttyUSB0?

FPC fpFLock does the same than Posix.Lockf?

-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160620/6583709b/attachment.html>


More information about the fpc-pascal mailing list