hat describes the type of lock needed, <code>open()</code>ing the file with the matching mode, and calling <code>fcntl()</code> with the proper arguments, <em>comme ça</em>:</p>
<div class="sourceCode" id="cb23"><pre class="sourceCode c"><code class="sourceCode c"><span id="cb23-1"><a href="flocking.html#cb23-1" aria-hidden="true" tabindex="-1"></a><span class="kw">struct</span> flock fl <span class="op">=</span> <span class="op">{</span></span>
<span id="cb23-2"><a href="flocking.html#cb23-2" aria-hidden=