Update open.html
Fix references to file descriptor being called file handle.
This commit is contained in:
parent
ec68d1f1d3
commit
a92f77bc80
@ -99,12 +99,12 @@ course's assignments.)
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<tt>open</tt> returns a file handle suitable for passing to
|
<tt>open</tt> returns a file descriptor suitable for passing to
|
||||||
<A HREF=read.html>read</A>,
|
<A HREF=read.html>read</A>,
|
||||||
<A HREF=write.html>write</A>,
|
<A HREF=write.html>write</A>,
|
||||||
<A HREF=close.html>close</A>,
|
<A HREF=close.html>close</A>,
|
||||||
etc. This file handle must be greater than or equal to zero. Note
|
etc. This file descriptor must be greater than or equal to zero. Note
|
||||||
that file handles 0 (STDIN_FILENO), 1 (STDOUT_FILENO), and 2
|
that file descriptors 0 (STDIN_FILENO), 1 (STDOUT_FILENO), and 2
|
||||||
(STDERR_FILENO) are used in special ways and are typically assumed by
|
(STDERR_FILENO) are used in special ways and are typically assumed by
|
||||||
user-level code to always be open.
|
user-level code to always be open.
|
||||||
</p>
|
</p>
|
||||||
@ -128,9 +128,9 @@ contain <tt>..</tt> is usually not quite atomic.
|
|||||||
|
|
||||||
<h3>Return Values</h3>
|
<h3>Return Values</h3>
|
||||||
<p>
|
<p>
|
||||||
On success, <tt>open</tt> returns a nonnegative file handle. On error,
|
On success, <tt>open</tt> returns a nonnegative file descriptor. On
|
||||||
-1 is returned, and <A HREF=errno.html>errno</A> is set according to
|
error, -1 is returned, and <A HREF=errno.html>errno</A> is set
|
||||||
the error encountered.
|
according to the error encountered.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3>Errors</h3>
|
<h3>Errors</h3>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user