466
|
1 <refentry id="close">
|
|
2 <refnamediv>
|
468
|
3 <refname>Close</refname>
|
|
4 <refpurpose>close a file</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>close</function></funcdef>
|
566
|
11 <paramdef>int <parameter>pn</parameter></paramdef>
|
466
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
540
|
17 <refsect1><title>Assembler Equivalent</title>
|
|
18 <para>
|
|
19 os9 I$CLOSE
|
|
20 </para>
|
|
21 </refsect1>
|
|
22
|
466
|
23 <refsect1><title>Description</title>
|
|
24 <para>
|
566
|
25 Close takes a path number, "pn", as returned from system calls
|
|
26 "open()", "creat()", or "dup()", and closes the associated
|
|
27 file.
|
|
28 </para>
|
|
29 <para>
|
|
30 Termination of a task always closes all open files
|
|
31 automatically, but it is necessary to close files where
|
|
32 multiple files are opened by the task, and it is desired to
|
|
33 re-use path numbers to avoid going over the system or process
|
|
34 path number limit.
|
466
|
35 </para>
|
|
36 </refsect1>
|
540
|
37
|
|
38 <refsect1><title>See Also</title>
|
|
39 <para>
|
|
40 <link linkend="creat">creat()</link>,
|
|
41 <link linkend="open">open()</link>,
|
|
42 <link linkend="dup">dup()</link>
|
|
43 </para>
|
|
44 </refsect1>
|
466
|
45 </refentry>
|