="st">&quot;filename&quot;</span><span class="op">,</span> O_WRONLY<span class="op">);</span>  <span class="co">/* get the file descriptor */</span></span>
<span id="cb24-11"><a href="flocking.html#cb24-11" aria-hidden="true" tabindex="-1"></a>fcntl<span class="op">(</span>fd<span class="op">,</span> F_SETLKW<span class="op">,</span> <span class="op">&amp;</span>fl<span class="op">);</span>  <span class="co">/* set the lock, waiting if necessary */</span></span>
<span id="cb24-12"><a href="flocking.html#cb2