Tutorial by Examples

This example demonstrates usage of POSIX record locks (a.k.a. process-associated locks), provided by fcntl function (POSIX base standard). Notes: Exclusive and shared locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (control...
This example demonstrates usage of lockf function (POSIX XSI). Notes: Only exclusive locks are supported. Can be applied to a byte range, optionally automatically expanding when data is appended in future (controlled by len argument and position set with lseek function). Locks are released on ...

Page 1 of 1