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...