Branch: Tag:

2004-04-05

2004-04-05 21:54:50 by Martin Stjernholm <mast@lysator.liu.se>

Added is_open.

Rev: src/modules/files/file.c:1.315
Rev: src/modules/files/file_functions.h:1.33

338:   <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>dup</b></span>   </dt> - <dd><p><code><code class='object unresolved'>Stdio.File</code> <b><span class='method'>dup</span>(</b><b>)</b></code></p></dd> + <dd><p><code><code class='object unresolved'>Stdio.Fd</code> <b><span class='method'>dup</span>(</b><b>)</b></code></p></dd>   </dl>      
414:   <hr />   <dl class='group--doc'>   <dt class='head--type'><span class='homogen--type'>Method</span> + <span class='homogen--name'><b>is_open</b></span> + </dt> + <dd><p><code><code class='datatype'>int</code> <b><span class='method'>is_open</span>(</b><b>)</b></code></p></dd> +  + <dt class='head--doc'>Description</dt> + <dd class='body--doc'><p>Returns true if the file is open.</p> + </dd> + <dt class='head--doc'>Note</dt> + <dd class='body--doc'><p>Most methods can't be called for a file descriptor that isn't +  open. Notable exceptions <code>errno</code>, <code>mode</code>, and the set and query +  functions for callbacks and backend.</p> + </dd></dl> +  +  + <hr /> + <dl class='group--doc'> + <dt class='head--type'><span class='homogen--type'>Method</span>   <span class='homogen--name'><b>line_iterator</b></span>   </dt>   <dd><p><code><code class='object unresolved'>String.SplitIterator</code>|<code class='object unresolved'>LineIterator</code> <b><span class='method'>line_iterator</span>(</b><code class='datatype'>int</code>|<code class='datatype'>void</code> <code class='argument'>trim</code><b>)</b></code></p></dd>
666:   <dt class='head--doc'>Description</dt>   <dd class='body--doc'><p>Open the master end of a pseudo-terminal pair.</p>   </dd> + <dt class='head--doc'>Returns</dt> + <dd class='body--doc'><p>This function returns <code class='expr'>1</code> for success, <code class='expr'>0</code> otherwise.</p> + </dd>   <dt class='head--doc'>See also</dt>   <dd class='body--doc'><p><code>grantpt()</code></p>   </dd></dl>