title: Mandatory file locking in Mac OS X
body: <p>According to a <code>man</code> pages the following approaches supports only advisory locking: <code>flock</code>, <code>lockf</code> and <code>fcntl</code>. Is there any way to mandatory lock a some file by a single process, for example with a write lock, so that other process will not able to open this file with the write permissions?</p>