code>EBADF</code>.</p>
<table>
<thead>
<tr class="header">
<th style="text-align: center;"><code>.l_type</code></th>
<th>Mode</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: center;"><code>F_RDLCK</code></td>
<td><code>O_RDONLY</code> or <code>O_RDWR</code></td>
</tr>
<tr class="even">
<td style="text-align: center;"><code>F_WRLCK</code></td>
<td><code>O_WRONLY</code> or <code>O_RDWR</code></td>
</tr>
</tbody>
</table>
<p>Finally, the call to <code>fcntl()</code> actually sets, clears, o