>
<span id="cb23-10"><a href="flocking.html#cb23-10" aria-hidden="true" tabindex="-1"></a>fd <span class="op">=</span> open<span class="op">(</span><span class="st">&quot;filename&quot;</span><span class="op">,</span> O_WRONLY<span class="op">);</span></span>
<span id="cb23-11"><a href="flocking.html#cb23-11" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb23-12"><a href="flocking.html#cb23-12" aria-hidden="true" tabindex="-1"></a>fcntl<span class="op">(</span>fd<span class="op">,</span> F_SETLKW<s